pub struct EndpointDecl {
pub from: SmolStr,
pub to: SmolStr,
pub cardinality: Cardinality,
}Expand description
Declared endpoint shape for a relationship type.
Fields§
§from: SmolStrSource label of a matching pattern (left-hand side of the arrow).
to: SmolStrTarget label of a matching pattern (right-hand side of the arrow).
cardinality: CardinalityMultiplicity between from and to endpoints.
Trait Implementations§
Source§impl Clone for EndpointDecl
impl Clone for EndpointDecl
Source§fn clone(&self) -> EndpointDecl
fn clone(&self) -> EndpointDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EndpointDecl
impl Debug for EndpointDecl
Source§impl<'de> Deserialize<'de> for EndpointDecl
impl<'de> Deserialize<'de> for EndpointDecl
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 EndpointDecl
impl PartialEq for EndpointDecl
Source§fn eq(&self, other: &EndpointDecl) -> bool
fn eq(&self, other: &EndpointDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EndpointDecl
impl Serialize for EndpointDecl
impl Eq for EndpointDecl
impl StructuralPartialEq for EndpointDecl
Auto Trait Implementations§
impl Freeze for EndpointDecl
impl RefUnwindSafe for EndpointDecl
impl Send for EndpointDecl
impl Sync for EndpointDecl
impl Unpin for EndpointDecl
impl UnsafeUnpin for EndpointDecl
impl UnwindSafe for EndpointDecl
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.