pub enum AttributeKey {
PrimaryKey,
ForeignKey,
UniqueKey,
}Expand description
Recognised key modifiers on an Attribute. Mermaid’s grammar
admits exactly these three; arbitrary other modifiers are rejected
at parse time so typos surface instead of silently disappearing.
Variants§
Trait Implementations§
Source§impl Clone for AttributeKey
impl Clone for AttributeKey
Source§fn clone(&self) -> AttributeKey
fn clone(&self) -> AttributeKey
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 AttributeKey
impl Debug for AttributeKey
Source§impl PartialEq for AttributeKey
impl PartialEq for AttributeKey
Source§fn eq(&self, other: &AttributeKey) -> bool
fn eq(&self, other: &AttributeKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AttributeKey
impl Eq for AttributeKey
impl StructuralPartialEq for AttributeKey
Auto Trait Implementations§
impl Freeze for AttributeKey
impl RefUnwindSafe for AttributeKey
impl Send for AttributeKey
impl Sync for AttributeKey
impl Unpin for AttributeKey
impl UnsafeUnpin for AttributeKey
impl UnwindSafe for AttributeKey
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