pub struct ContextNode {
pub path: PathBuf,
pub summary: String,
pub type_: Option<String>,
pub hops: u32,
pub via: Option<(PathBuf, Direction)>,
}Expand description
One node reached during a neighborhood hydration: the file, its
summary, and how it connects back toward the seed.
Fields§
§path: PathBufThe store-relative path of the reached file.
summary: StringThe file’s summary (read from its sidecar entry / frontmatter).
type_: Option<String>The file’s type, when known.
hops: u32Hop distance from the seed (the seed itself is 0).
via: Option<(PathBuf, Direction)>The relationship edge that brought this node into the slice: the path it links to/from one hop closer to the seed, and the direction.
Trait Implementations§
Source§impl Clone for ContextNode
impl Clone for ContextNode
Source§fn clone(&self) -> ContextNode
fn clone(&self) -> ContextNode
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 ContextNode
impl Debug for ContextNode
Source§impl PartialEq for ContextNode
impl PartialEq for ContextNode
Source§fn eq(&self, other: &ContextNode) -> bool
fn eq(&self, other: &ContextNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ContextNode
impl StructuralPartialEq for ContextNode
Auto Trait Implementations§
impl Freeze for ContextNode
impl RefUnwindSafe for ContextNode
impl Send for ContextNode
impl Sync for ContextNode
impl Unpin for ContextNode
impl UnsafeUnpin for ContextNode
impl UnwindSafe for ContextNode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.