pub enum CardinalitySchemaRule {
OneToOne,
OneToMany {
min: u32,
max: u32,
},
ManyToOne {
min: u32,
max: u32,
},
ManyToMany {
min_per_source: u32,
max_per_source: u32,
},
}Expand description
Cardinality rule for relationships in schema config.
Variants§
OneToOne
One source to one target.
OneToMany
One source to many targets.
ManyToOne
Many sources to one target.
ManyToMany
Many sources to many targets.
Trait Implementations§
Source§impl Clone for CardinalitySchemaRule
impl Clone for CardinalitySchemaRule
Source§fn clone(&self) -> CardinalitySchemaRule
fn clone(&self) -> CardinalitySchemaRule
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 CardinalitySchemaRule
impl Debug for CardinalitySchemaRule
Source§impl Default for CardinalitySchemaRule
impl Default for CardinalitySchemaRule
Source§impl<'de> Deserialize<'de> for CardinalitySchemaRule
impl<'de> Deserialize<'de> for CardinalitySchemaRule
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 CardinalitySchemaRule
impl RefUnwindSafe for CardinalitySchemaRule
impl Send for CardinalitySchemaRule
impl Sync for CardinalitySchemaRule
impl Unpin for CardinalitySchemaRule
impl UnwindSafe for CardinalitySchemaRule
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