#[non_exhaustive]pub struct ConfigNodeView {
pub id: NodeId,
pub source_file: PathBuf,
pub toml_path: String,
pub display_name: String,
pub kind: NodeKind,
pub validation: NodeValidation,
}Expand description
One editable value inside a ConfigFileView.
Each node carries the six fields spec §4.2 makes mandatory.
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.id: NodeIdStable identifier — survives moves / renames within a Workspace instance.
source_file: PathBufFile the node was loaded from.
toml_path: StringDotted TOML path inside source_file (e.g. "listener.port",
"rules[2].respond").
display_name: StringHuman-readable label for UI list rendering (e.g. the rule’s
url_path value, or "Rule #3" for a rule without one).
kind: NodeKindShape of the underlying value.
validation: NodeValidationPer-node validation results.
Trait Implementations§
Source§impl Clone for ConfigNodeView
impl Clone for ConfigNodeView
Source§fn clone(&self) -> ConfigNodeView
fn clone(&self) -> ConfigNodeView
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 ConfigNodeView
impl Debug for ConfigNodeView
Auto Trait Implementations§
impl Freeze for ConfigNodeView
impl RefUnwindSafe for ConfigNodeView
impl Send for ConfigNodeView
impl Sync for ConfigNodeView
impl Unpin for ConfigNodeView
impl UnsafeUnpin for ConfigNodeView
impl UnwindSafe for ConfigNodeView
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