#[non_exhaustive]pub struct ConfigFileView {
pub path: PathBuf,
pub source_relative: Option<String>,
pub nodes: Vec<ConfigNodeView>,
}Expand description
One TOML file inside the workspace.
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.path: PathBufAbsolute path on disk.
source_relative: Option<String>Path as written inside the parent config (e.g.
"apimock-rule-set.toml"). Useful for displaying without the
full absolute path noise.
nodes: Vec<ConfigNodeView>The editable nodes extracted from the file, flat for list-rendering.
Implementations§
Trait Implementations§
Source§impl Clone for ConfigFileView
impl Clone for ConfigFileView
Source§fn clone(&self) -> ConfigFileView
fn clone(&self) -> ConfigFileView
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 ConfigFileView
impl Debug for ConfigFileView
Auto Trait Implementations§
impl Freeze for ConfigFileView
impl RefUnwindSafe for ConfigFileView
impl Send for ConfigFileView
impl Sync for ConfigFileView
impl Unpin for ConfigFileView
impl UnsafeUnpin for ConfigFileView
impl UnwindSafe for ConfigFileView
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