pub struct WorkspaceSnapshot {
pub protocol_version: Version,
pub config_anchor: Option<RelativePath>,
pub name: Option<String>,
pub state: WorkspaceState,
pub projects: Vec<ProjectSnapshot>,
pub diagnostics: Vec<WorkspaceDiagnostic>,
}Expand description
A deterministic, provider-neutral snapshot of a workspace.
Fields§
§protocol_version: VersionThe protocol version used to produce this snapshot.
config_anchor: Option<RelativePath>The workspace configuration path relative to the development root, when one exists.
name: Option<String>The configured workspace name, when present.
state: WorkspaceStateThe overall workspace state.
projects: Vec<ProjectSnapshot>Discovered projects, sorted by canonical relative path and then name.
diagnostics: Vec<WorkspaceDiagnostic>Workspace diagnostics, sorted by project path, path, code, severity, and message.
Trait Implementations§
Source§impl Clone for WorkspaceSnapshot
impl Clone for WorkspaceSnapshot
Source§impl Debug for WorkspaceSnapshot
impl Debug for WorkspaceSnapshot
Source§impl<'de> Deserialize<'de> for WorkspaceSnapshot
impl<'de> Deserialize<'de> for WorkspaceSnapshot
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 WorkspaceSnapshot
Source§impl PartialEq for WorkspaceSnapshot
impl PartialEq for WorkspaceSnapshot
Source§impl Serialize for WorkspaceSnapshot
impl Serialize for WorkspaceSnapshot
impl StructuralPartialEq 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