pub struct GraphEdge {
pub id: String,
pub from_id: String,
pub to_id: String,
pub kind: String,
pub properties: BTreeMap<String, String>,
pub provenance: Vec<GraphProvenance>,
pub freshness: Option<GraphFreshness>,
}Fields§
§id: String§from_id: String§to_id: String§kind: String§properties: BTreeMap<String, String>§provenance: Vec<GraphProvenance>§freshness: Option<GraphFreshness>Implementations§
Source§impl GraphEdge
impl GraphEdge
pub fn stable_id(from_id: &str, to_id: &str, kind: &str) -> String
pub fn new( from_id: impl Into<String>, to_id: impl Into<String>, kind: impl Into<String>, ) -> GraphEdge
pub fn with_property( self, key: impl Into<String>, value: impl Into<String>, ) -> GraphEdge
pub fn with_provenance(self, provenance: GraphProvenance) -> GraphEdge
pub fn with_freshness(self, freshness: GraphFreshness) -> GraphEdge
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphEdge
impl<'de> Deserialize<'de> for GraphEdge
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GraphEdge, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GraphEdge, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GraphEdge
Source§impl From<&GraphEdge> for ConvexEdgeRow
impl From<&GraphEdge> for ConvexEdgeRow
Source§fn from(edge: &GraphEdge) -> ConvexEdgeRow
fn from(edge: &GraphEdge) -> ConvexEdgeRow
Converts to this type from the input type.
Source§impl From<&GraphEdge> for TerseGraphEdge
impl From<&GraphEdge> for TerseGraphEdge
Source§fn from(edge: &GraphEdge) -> TerseGraphEdge
fn from(edge: &GraphEdge) -> TerseGraphEdge
Converts to this type from the input type.
Source§impl From<&TerseGraphEdge> for GraphEdge
impl From<&TerseGraphEdge> for GraphEdge
Source§fn from(edge: &TerseGraphEdge) -> GraphEdge
fn from(edge: &TerseGraphEdge) -> GraphEdge
Converts to this type from the input type.
Source§impl From<ConvexEdgeRow> for GraphEdge
impl From<ConvexEdgeRow> for GraphEdge
Source§fn from(row: ConvexEdgeRow) -> GraphEdge
fn from(row: ConvexEdgeRow) -> GraphEdge
Converts to this type from the input type.
Source§impl From<GraphEdge> for TerseGraphEdge
impl From<GraphEdge> for TerseGraphEdge
Source§fn from(edge: GraphEdge) -> TerseGraphEdge
fn from(edge: GraphEdge) -> TerseGraphEdge
Converts to this type from the input type.
Source§impl From<TerseGraphEdge> for GraphEdge
impl From<TerseGraphEdge> for GraphEdge
Source§fn from(edge: TerseGraphEdge) -> GraphEdge
fn from(edge: TerseGraphEdge) -> GraphEdge
Converts to this type from the input type.
Source§impl Serialize for GraphEdge
impl Serialize for GraphEdge
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for GraphEdge
Auto Trait Implementations§
impl Freeze for GraphEdge
impl RefUnwindSafe for GraphEdge
impl Send for GraphEdge
impl Sync for GraphEdge
impl Unpin for GraphEdge
impl UnsafeUnpin for GraphEdge
impl UnwindSafe for GraphEdge
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