pub struct WorkspaceRecord {
pub workspace_id: String,
pub name: String,
pub tab_ids: Vec<String>,
pub active_tab_id: Option<String>,
}Expand description
Phase E.2 — workspace as held by the srv reducer’s canonical
state. Mirrors the persistent Workspace struct in
agentmux_srv::backend::obj::Workspace but with the reducer-
canonical fields the cross-process events care about.
Phase E.2b extends the record with tab_ids (ordered) and
active_tab_id. Tabs themselves live in state.tabs keyed by
tab_id; the workspace owns the ordering.
Fields§
§workspace_id: String§name: String§tab_ids: Vec<String>Ordered list of tab ids in this workspace. Mirrors the
persistent Workspace.tabids field.
active_tab_id: Option<String>The active tab in this workspace, if any. None when the
workspace has no tabs or has not yet had one selected.
Trait Implementations§
Source§impl Clone for WorkspaceRecord
impl Clone for WorkspaceRecord
Source§fn clone(&self) -> WorkspaceRecord
fn clone(&self) -> WorkspaceRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkspaceRecord
impl Debug for WorkspaceRecord
Source§impl PartialEq for WorkspaceRecord
impl PartialEq for WorkspaceRecord
impl Eq for WorkspaceRecord
impl StructuralPartialEq for WorkspaceRecord
Auto Trait Implementations§
impl Freeze for WorkspaceRecord
impl RefUnwindSafe for WorkspaceRecord
impl Send for WorkspaceRecord
impl Sync for WorkspaceRecord
impl Unpin for WorkspaceRecord
impl UnwindSafe for WorkspaceRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.