pub enum EndpointCardinality {
ZeroOrOne,
ExactlyOne,
ZeroOrMany,
OneOrMany,
}Expand description
Crow’s feet notation endpoint cardinality
Defines the cardinality at one end of a relationship using standard crow’s feet notation symbols:
- ZeroOrOne: Optional single (0..1) - circle with single line
- ExactlyOne: Required single (1..1) - single line with perpendicular bar
- ZeroOrMany: Optional multiple (0..*) - circle with crow’s foot
- OneOrMany: Required multiple (1..*) - perpendicular bar with crow’s foot
Variants§
ZeroOrOne
Zero or one (optional single) - 0..1
ExactlyOne
Exactly one (required single) - 1..1
ZeroOrMany
Zero or many (optional multiple) - 0..*
OneOrMany
One or many (required multiple) - 1..*
Trait Implementations§
Source§impl Clone for EndpointCardinality
impl Clone for EndpointCardinality
Source§fn clone(&self) -> EndpointCardinality
fn clone(&self) -> EndpointCardinality
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 EndpointCardinality
impl Debug for EndpointCardinality
Source§impl<'de> Deserialize<'de> for EndpointCardinality
impl<'de> Deserialize<'de> for EndpointCardinality
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 EndpointCardinality
impl PartialEq for EndpointCardinality
Source§impl Serialize for EndpointCardinality
impl Serialize for EndpointCardinality
impl Copy for EndpointCardinality
impl Eq for EndpointCardinality
impl StructuralPartialEq for EndpointCardinality
Auto Trait Implementations§
impl Freeze for EndpointCardinality
impl RefUnwindSafe for EndpointCardinality
impl Send for EndpointCardinality
impl Sync for EndpointCardinality
impl Unpin for EndpointCardinality
impl UnwindSafe for EndpointCardinality
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.