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>, ) -> GraphNode
pub fn with_property( self, key: impl Into<String>, value: impl Into<String>, ) -> GraphNode
pub fn with_provenance(self, provenance: GraphProvenance) -> GraphNode
pub fn with_freshness(self, freshness: GraphFreshness) -> GraphNode
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphNode
impl<'de> Deserialize<'de> for GraphNode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GraphNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GraphNode, <__D as Deserializer<'de>>::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§fn from(node: &GraphNode) -> ConvexNodeRow
fn from(node: &GraphNode) -> ConvexNodeRow
Converts to this type from the input type.
Source§impl From<ConvexNodeRow> for GraphNode
impl From<ConvexNodeRow> for GraphNode
Source§fn from(row: ConvexNodeRow) -> GraphNode
fn from(row: ConvexNodeRow) -> GraphNode
Converts to this type from the input type.
Source§impl Serialize for GraphNode
impl Serialize for GraphNode
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 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