pub struct Edge {
pub id: EdgeId,
pub source_node_id: NodeId,
pub target_node_id: NodeId,
pub kind: String,
pub content: String,
pub metadata: Option<Value>,
}Fields§
§id: EdgeId§source_node_id: NodeId§target_node_id: NodeId§kind: String§content: String§metadata: Option<Value>Implementations§
Source§impl Edge
impl Edge
pub fn new( source_node_id: impl Into<NodeId>, target_node_id: impl Into<NodeId>, kind: impl Into<String>, content: impl Into<String>, ) -> Self
pub fn with_suffix( source_node_id: impl Into<NodeId>, target_node_id: impl Into<NodeId>, kind: impl Into<String>, suffix: impl Display, content: impl Into<String>, ) -> Self
pub fn with_metadata(self, metadata: Value) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edge
impl<'de> Deserialize<'de> for Edge
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 Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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