pub enum NodeContent {
Text(String),
Structured(HashMap<String, Value>),
Embedding(Vec<f64>),
Reference(String),
Compound(Vec<NodeContent>),
}Expand description
Content payload for a cognitive node.
Variants§
Text(String)
Plain text.
Structured(HashMap<String, Value>)
Structured key-value data.
Embedding(Vec<f64>)
Embedding vector.
Reference(String)
Reference to external resource.
Compound(Vec<NodeContent>)
Compound content combining multiple types.
Trait Implementations§
Source§impl Clone for NodeContent
impl Clone for NodeContent
Source§fn clone(&self) -> NodeContent
fn clone(&self) -> NodeContent
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 NodeContent
impl Debug for NodeContent
Source§impl<'de> Deserialize<'de> for NodeContent
impl<'de> Deserialize<'de> for NodeContent
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 NodeContent
impl PartialEq for NodeContent
Source§impl Serialize for NodeContent
impl Serialize for NodeContent
impl StructuralPartialEq for NodeContent
Auto Trait Implementations§
impl Freeze for NodeContent
impl RefUnwindSafe for NodeContent
impl Send for NodeContent
impl Sync for NodeContent
impl Unpin for NodeContent
impl UnsafeUnpin for NodeContent
impl UnwindSafe for NodeContent
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