#[non_exhaustive]pub struct WorkspaceSnapshot {
pub root: ConfigFileView,
pub rule_sets: Vec<ConfigFileView>,
pub middlewares: Vec<ConfigFileView>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
A snapshot of the whole workspace — every loaded file and the editable nodes inside each.
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.root: ConfigFileViewThe root apimock.toml file.
rule_sets: Vec<ConfigFileView>Rule-set files referenced from root, in the same order they
appear in service.rule_sets.
middlewares: Vec<ConfigFileView>Middleware files referenced from root.
diagnostics: Vec<Diagnostic>Issues found during the most recent load. ok iff empty.
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 (const: unstable) · 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