pub struct CognitiveEdge {
pub from: String,
pub to: String,
pub edge_type: CognitiveEdgeType,
pub weight: f64,
}Expand description
An edge in a cognitive graph.
Fields§
§from: StringSource node ID.
to: StringTarget node ID.
edge_type: CognitiveEdgeTypeEdge type.
weight: f64Edge weight 0.0-1.0.
Trait Implementations§
Source§impl Clone for CognitiveEdge
impl Clone for CognitiveEdge
Source§fn clone(&self) -> CognitiveEdge
fn clone(&self) -> CognitiveEdge
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 CognitiveEdge
impl Debug for CognitiveEdge
Source§impl<'de> Deserialize<'de> for CognitiveEdge
impl<'de> Deserialize<'de> for CognitiveEdge
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
Auto Trait Implementations§
impl Freeze for CognitiveEdge
impl RefUnwindSafe for CognitiveEdge
impl Send for CognitiveEdge
impl Sync for CognitiveEdge
impl Unpin for CognitiveEdge
impl UnsafeUnpin for CognitiveEdge
impl UnwindSafe for CognitiveEdge
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