pub struct Node {
pub metadata: Metadata,
}Expand description
A node in a graph. Its identity is its key in Graph::nodes (a path);
the node body carries only metadata.
Fields§
§metadata: MetadataImplementations§
Source§impl Node
impl Node
Sourcepub fn fs_hash(&self) -> Option<&str>
pub fn fs_hash(&self) -> Option<&str>
This composed node’s current fs content hash, if it has one.
Sourcepub fn fs_type(&self) -> Option<&str>
pub fn fs_type(&self) -> Option<&str>
This composed node’s fs type (file, symlink, directory), if any.
Sourcepub fn is_resolved(&self) -> bool
pub fn is_resolved(&self) -> bool
Whether this composed node is resolved — present with an @fs block.
Resolution is namespace presence.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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