pub struct GraphNode {
pub id: String,
pub kind: String,
pub label: String,
pub properties: BTreeMap<String, String>,
pub provenance: Vec<GraphProvenance>,
pub freshness: Option<GraphFreshness>,
}Fields§
§id: String§kind: String§label: String§properties: BTreeMap<String, String>§provenance: Vec<GraphProvenance>§freshness: Option<GraphFreshness>Implementations§
Source§impl GraphNode
impl GraphNode
pub fn new( id: impl Into<String>, kind: impl Into<String>, label: 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 GraphNode
impl<'de> Deserialize<'de> for GraphNode
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<&GraphNode> for ConvexNodeRow
impl From<&GraphNode> for ConvexNodeRow
Source§impl From<ConvexNodeRow> for GraphNode
impl From<ConvexNodeRow> for GraphNode
Source§fn from(row: ConvexNodeRow) -> Self
fn from(row: ConvexNodeRow) -> Self
Converts to this type from the input type.
impl Eq for GraphNode
impl StructuralPartialEq for GraphNode
Auto Trait Implementations§
impl Freeze for GraphNode
impl RefUnwindSafe for GraphNode
impl Send for GraphNode
impl Sync for GraphNode
impl Unpin for GraphNode
impl UnsafeUnpin for GraphNode
impl UnwindSafe for GraphNode
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