pub struct SchemaNode<'t> {
pub line: &'t str,
pub match_pattern: Option<Expression<'t>>,
pub avoid_pattern: Option<Expression<'t>>,
pub symlink: Option<Expression<'t>>,
pub uses: Vec<Identifier<'t>>,
pub attributes: Attributes<'t>,
pub schema: SchemaType<'t>,
}Expand description
A node in an abstract directory hierarchy
Fields§
§line: &'t strA reference to the line in the text representation where this node was defined
match_pattern: Option<Expression<'t>>Condition against which to match file/directory names
avoid_pattern: Option<Expression<'t>>Condition against which file/directory names must not match
symlink: Option<Expression<'t>>Symlink target - if this produces a symbolic link. Operates on the target end.
uses: Vec<Identifier<'t>>Links to other schemas :used by this one (found in parent DirectorySchema definitions)
attributes: Attributes<'t>Properties of this file/directory
schema: SchemaType<'t>Properties specific to the underlying (file or directory) type
Trait Implementations§
Source§impl<'t> Clone for SchemaNode<'t>
impl<'t> Clone for SchemaNode<'t>
Source§fn clone(&self) -> SchemaNode<'t>
fn clone(&self) -> SchemaNode<'t>
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<'t> Debug for SchemaNode<'t>
impl<'t> Debug for SchemaNode<'t>
Source§impl<'t> Display for SchemaNode<'t>
impl<'t> Display for SchemaNode<'t>
Source§impl<'t> PartialEq for SchemaNode<'t>
impl<'t> PartialEq for SchemaNode<'t>
impl<'t> StructuralPartialEq for SchemaNode<'t>
Auto Trait Implementations§
impl<'t> Freeze for SchemaNode<'t>
impl<'t> RefUnwindSafe for SchemaNode<'t>
impl<'t> Send for SchemaNode<'t>
impl<'t> Sync for SchemaNode<'t>
impl<'t> Unpin for SchemaNode<'t>
impl<'t> UnwindSafe for SchemaNode<'t>
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