pub struct NodeConnection {
pub id: Uuid,
pub source_node_id: Uuid,
pub target_node_id: Uuid,
pub cardinality: CrowsfeetCardinality,
pub relationship_type: String,
pub metadata: HashMap<String, Value>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
}Expand description
NodeConnection - Crowsfeet notation relationship between ODCS nodes
Represents cardinality-based relationships (1:1, 1:N, 0:1, 0:N) between ODCS nodes.
Fields§
§id: UuidUnique identifier
source_node_id: UuidSource node ID (ODCSNode)
target_node_id: UuidTarget node ID (ODCSNode)
cardinality: CrowsfeetCardinalityCardinality (OneToOne, OneToMany, ZeroOrOne, ZeroOrMany)
relationship_type: StringRelationship type (e.g., “foreign_key”, “data_flow”, “derived_from”)
metadata: HashMap<String, Value>Additional metadata
created_at: Option<DateTime<Utc>>Creation timestamp
updated_at: Option<DateTime<Utc>>Last update timestamp
Trait Implementations§
Source§impl Clone for NodeConnection
impl Clone for NodeConnection
Source§fn clone(&self) -> NodeConnection
fn clone(&self) -> NodeConnection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeConnection
impl Debug for NodeConnection
Source§impl<'de> Deserialize<'de> for NodeConnection
impl<'de> Deserialize<'de> for NodeConnection
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 PartialEq for NodeConnection
impl PartialEq for NodeConnection
Source§impl Serialize for NodeConnection
impl Serialize for NodeConnection
impl StructuralPartialEq for NodeConnection
Auto Trait Implementations§
impl Freeze for NodeConnection
impl RefUnwindSafe for NodeConnection
impl Send for NodeConnection
impl Sync for NodeConnection
impl Unpin for NodeConnection
impl UnwindSafe for NodeConnection
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