#[non_exhaustive]pub enum ProjectedTokenKind {
Model,
Field,
Role,
Function,
Struct,
Attribute,
}Expand description
The closed semantic kind carried by one generated projection token.
Numeric spellings are frozen independently from Rust enum layout and are copied explicitly into each native ABI. New native facades must reject an unknown kind before attempting ordinal resolution.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Model
One projected model identity.
Field
One owner-branded projected owned-field identity.
Role
One owner-branded projected relation-role identity.
Function
One exact projected schema-function identity.
Struct
One exact projected generated-struct identity.
Attribute
One exact projected attribute-value identity.
Implementations§
Trait Implementations§
Source§impl Clone for ProjectedTokenKind
impl Clone for ProjectedTokenKind
impl Copy for ProjectedTokenKind
Source§impl Debug for ProjectedTokenKind
impl Debug for ProjectedTokenKind
impl Eq for ProjectedTokenKind
Source§impl Hash for ProjectedTokenKind
impl Hash for ProjectedTokenKind
Source§impl Ord for ProjectedTokenKind
impl Ord for ProjectedTokenKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProjectedTokenKind
impl PartialEq for ProjectedTokenKind
Source§impl PartialOrd for ProjectedTokenKind
impl PartialOrd for ProjectedTokenKind
impl StructuralPartialEq for ProjectedTokenKind
Auto Trait Implementations§
impl Freeze for ProjectedTokenKind
impl RefUnwindSafe for ProjectedTokenKind
impl Send for ProjectedTokenKind
impl Sync for ProjectedTokenKind
impl Unpin for ProjectedTokenKind
impl UnsafeUnpin for ProjectedTokenKind
impl UnwindSafe for ProjectedTokenKind
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