pub struct ContextNode {
pub key: String,
pub kind: String,
pub name: String,
pub path: Option<String>,
pub lang: Option<String>,
}Expand description
A compact node summary within a NodeContext. Owned and round-trippable so
the whole bundle can be cached as JSON and read back.
Fields§
§key: StringNatural key.
kind: StringKind token (e.g. fn, adr).
name: StringHuman-facing name.
path: Option<String>Repository-relative path, if any.
lang: Option<String>Language token, if any.
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<'de> Deserialize<'de> for ContextNode
impl<'de> Deserialize<'de> for ContextNode
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
Source§impl PartialEq for ContextNode
impl PartialEq for ContextNode
Source§impl Serialize for ContextNode
impl Serialize 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