Struct diskplan_schema::SchemaNode
source · 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 str
A 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 :use
d 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 copy 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>
source§fn eq(&self, other: &SchemaNode<'t>) -> bool
fn eq(&self, other: &SchemaNode<'t>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'t> StructuralPartialEq for SchemaNode<'t>
Auto Trait Implementations§
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