pub struct ModelRelationship {
pub from_model: String,
pub to_model: String,
pub name: String,
pub cardinality: Cardinality,
pub edge_count: usize,
pub traversal_hint: TraversalHint,
}Expand description
A relationship between two models.
Fields§
§from_model: StringSource model name.
to_model: StringTarget model name.
name: StringRelationship name: “sold_by”, “has_reviews”, “similar_to”.
cardinality: CardinalityCardinality.
edge_count: usizeNumber of edges backing this relationship.
traversal_hint: TraversalHintHint for graph traversal to navigate this relationship.
Trait Implementations§
Source§impl Clone for ModelRelationship
impl Clone for ModelRelationship
Source§fn clone(&self) -> ModelRelationship
fn clone(&self) -> ModelRelationship
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 ModelRelationship
impl Debug for ModelRelationship
Source§impl<'de> Deserialize<'de> for ModelRelationship
impl<'de> Deserialize<'de> for ModelRelationship
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
Auto Trait Implementations§
impl Freeze for ModelRelationship
impl RefUnwindSafe for ModelRelationship
impl Send for ModelRelationship
impl Sync for ModelRelationship
impl Unpin for ModelRelationship
impl UnsafeUnpin for ModelRelationship
impl UnwindSafe for ModelRelationship
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