pub enum TypeKind {
Node,
Edge,
Attribute,
}Expand description
Kind of a registrable GTS type.
One of this crate’s closed enums: a fixed set that is stored as TEXT
under a CHECK constraint and carried over REST as a plain string, so the
storage form and the wire form are the same string. DESIGN
§ Closed Enum Contract is normative for all of them, and states the three
rules a client depends on: a spelling never changes meaning and is never
reused; adding a variant is compatible while removing or renaming one is
breaking; and an unrecognized value must be carried through or refused by
name, never mapped onto a known variant or defaulted – an unknown outcome
decoded as ok turns a value the server chose into one it denied. The set
is not an extension point: a deployment cannot add to it.
Variants§
Implementations§
Trait Implementations§
impl Copy for TypeKind
impl Eq for TypeKind
impl StructuralPartialEq for TypeKind
Auto Trait Implementations§
impl Freeze for TypeKind
impl RefUnwindSafe for TypeKind
impl Send for TypeKind
impl Sync for TypeKind
impl Unpin for TypeKind
impl UnsafeUnpin for TypeKind
impl UnwindSafe for TypeKind
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.