#[non_exhaustive]pub struct WorkspaceSnapshot {
pub files: Vec<ConfigFileView>,
pub routes: RouteCatalogSnapshot,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Complete snapshot of the workspace state.
Shape matches spec §4.2 exactly. Consumed read-only by the GUI;
mutated indirectly via Workspace::apply.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.files: Vec<ConfigFileView>All editable TOML files in the workspace, flattened. Each file carries its own list of editable nodes.
routes: RouteCatalogSnapshotRoute overview pulled from the routing crate.
diagnostics: Vec<Diagnostic>Workspace-scoped issues (e.g. a root file that failed to load).
Per-node diagnostics live inside each ConfigNodeView.validation.
Implementations§
Trait Implementations§
Source§impl Clone for WorkspaceSnapshot
impl Clone for WorkspaceSnapshot
Source§fn clone(&self) -> WorkspaceSnapshot
fn clone(&self) -> WorkspaceSnapshot
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 WorkspaceSnapshot
impl Debug for WorkspaceSnapshot
Auto Trait Implementations§
impl Freeze for WorkspaceSnapshot
impl RefUnwindSafe for WorkspaceSnapshot
impl Send for WorkspaceSnapshot
impl Sync for WorkspaceSnapshot
impl Unpin for WorkspaceSnapshot
impl UnsafeUnpin for WorkspaceSnapshot
impl UnwindSafe for WorkspaceSnapshot
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