pub struct Node {
pub workspace_id: WorkspaceId,
pub id: NodeId,
pub parent_id: Option<NodeId>,
pub name: String,
pub kind: NodeKind,
pub logical_size: u64,
pub created_at_ms: i64,
pub modified_at_ms: i64,
pub accessed_at_ms: i64,
pub revision: Revision,
pub attributes: BTreeMap<String, Value>,
}Expand description
Transport-independent metadata for a filesystem node.
Fields§
§workspace_id: WorkspaceIdThe workspace that owns this node.
id: NodeIdThe stable identity of this node.
parent_id: Option<NodeId>The node’s parent, or None for a workspace root.
name: StringThe basename used by the parent to address this node.
kind: NodeKindThe node’s filesystem type.
logical_size: u64The logical byte size of the node’s content.
created_at_ms: i64The Unix timestamp in milliseconds when the node was created.
modified_at_ms: i64The Unix timestamp in milliseconds when the node was last modified.
accessed_at_ms: i64The Unix timestamp in milliseconds when the node was last accessed.
revision: RevisionThe current optimistic-concurrency revision.
attributes: BTreeMap<String, Value>Application-defined metadata associated with this node.
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