pub struct ParentNode {
pub id: Uuid,
pub source_version_id: Uuid,
pub parent_node_id: Option<Uuid>,
pub kind: NodeKind,
pub name: String,
pub order_index: i32,
pub document_id: Option<Uuid>,
}Expand description
One ancestor in a chunk’s parent chain, with the document id attached when
the node is a document node (group/root nodes have document_id: None).
Fields§
§id: UuidNode id (structural hierarchy id — NOT a document id).
source_version_id: UuidOwning source version.
parent_node_id: Option<Uuid>Parent node id (None for the root).
kind: NodeKinddocument / group / root.
name: StringDisplay name (file or folder name; root for the root).
order_index: i32Sibling order.
document_id: Option<Uuid>The fetchable document id, present only on kind == "document" nodes.
Trait Implementations§
Source§impl Clone for ParentNode
impl Clone for ParentNode
Source§fn clone(&self) -> ParentNode
fn clone(&self) -> ParentNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParentNode
impl Debug for ParentNode
Auto Trait Implementations§
impl Freeze for ParentNode
impl RefUnwindSafe for ParentNode
impl Send for ParentNode
impl Sync for ParentNode
impl Unpin for ParentNode
impl UnsafeUnpin for ParentNode
impl UnwindSafe for ParentNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more