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>, ) -> Self
pub fn with_property( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn with_provenance(self, provenance: GraphProvenance) -> Self
pub fn with_freshness(self, freshness: GraphFreshness) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphEdge
impl<'de> Deserialize<'de> for GraphEdge
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 From<&GraphEdge> for ConvexEdgeRow
impl From<&GraphEdge> for ConvexEdgeRow
Source§impl From<ConvexEdgeRow> for GraphEdge
impl From<ConvexEdgeRow> for GraphEdge
Source§fn from(row: ConvexEdgeRow) -> Self
fn from(row: ConvexEdgeRow) -> Self
Converts to this type from the input type.
impl Eq for GraphEdge
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