pub struct Workspace {Show 16 fields
pub id: WorkspaceId,
pub label: String,
pub columns: IndexMap<WorkspaceColumnId, WorkspaceColumnRecord>,
pub windows: IndexMap<WorkspaceWindowId, WorkspaceWindowRecord>,
pub active_window: WorkspaceWindowId,
pub pane_containers: IndexMap<PaneContainerId, PaneContainerRecord>,
pub panes: IndexMap<PaneId, PaneRecord>,
pub active_pane: PaneId,
pub viewport: WorkspaceViewport,
pub notifications: Vec<NotificationItem>,
pub status_text: Option<String>,
pub progress: Option<ProgressState>,
pub log_entries: Vec<WorkspaceLogEntry>,
pub surface_flash_tokens: BTreeMap<SurfaceId, u64>,
pub next_flash_token: u64,
pub custom_color: Option<String>,
}Fields§
§id: WorkspaceId§label: String§columns: IndexMap<WorkspaceColumnId, WorkspaceColumnRecord>§windows: IndexMap<WorkspaceWindowId, WorkspaceWindowRecord>§active_window: WorkspaceWindowId§pane_containers: IndexMap<PaneContainerId, PaneContainerRecord>§panes: IndexMap<PaneId, PaneRecord>§active_pane: PaneId§viewport: WorkspaceViewport§notifications: Vec<NotificationItem>§status_text: Option<String>§progress: Option<ProgressState>§log_entries: Vec<WorkspaceLogEntry>§surface_flash_tokens: BTreeMap<SurfaceId, u64>§next_flash_token: u64§custom_color: Option<String>Implementations§
Source§impl Workspace
impl Workspace
pub fn bootstrap(label: impl Into<String>) -> Self
pub fn active_window_record(&self) -> Option<&WorkspaceWindowRecord>
pub fn active_window_record_mut(&mut self) -> Option<&mut WorkspaceWindowRecord>
pub fn column_for_window( &self, window_id: WorkspaceWindowId, ) -> Option<WorkspaceColumnId>
pub fn active_column_id(&self) -> Option<WorkspaceColumnId>
pub fn window_for_pane(&self, pane_id: PaneId) -> Option<WorkspaceWindowId>
pub fn repo_hint(&self) -> Option<&str>
pub fn attention_counts(&self) -> BTreeMap<AttentionState, usize>
pub fn active_surface_id(&self) -> Option<SurfaceId>
pub fn agent_summaries( &self, _now: OffsetDateTime, ) -> Vec<WorkspaceAgentSummary>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Workspace
impl<'de> Deserialize<'de> for Workspace
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Workspace
impl StructuralPartialEq for Workspace
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnsafeUnpin for Workspace
impl UnwindSafe for Workspace
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.