#[non_exhaustive]pub enum ProjectedTokenIdentity {
Model(TypeId),
Field {
owner: TypeId,
field: OwnsFactId,
},
Role {
owner: TypeId,
role: RoleId,
},
Function(FunctionId),
Struct(StructId),
Attribute(AttributeId),
}Expand description
One binding-neutral semantic identity resolved from a generated token.
Role and field values retain the effective model owner explicitly because inherited roles and ownership declarations may share a declaring identity while remaining distinct generated members on different concrete models.
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(TypeId)
One exact projected model.
Field
One field as exposed by an exact projected model.
Fields
§
field: OwnsFactIdCanonical ownership-fact identity.
Role
One role as exposed by an exact projected relation model.
Fields
Function(FunctionId)
One exact projected schema function.
Struct(StructId)
One exact projected generated struct.
Attribute(AttributeId)
One exact projected attribute value.
Implementations§
Source§impl ProjectedTokenIdentity
impl ProjectedTokenIdentity
Sourcepub const fn kind(&self) -> ProjectedTokenKind
pub const fn kind(&self) -> ProjectedTokenKind
Return this identity’s frozen token kind.
Trait Implementations§
Source§impl Clone for ProjectedTokenIdentity
impl Clone for ProjectedTokenIdentity
Source§fn clone(&self) -> ProjectedTokenIdentity
fn clone(&self) -> ProjectedTokenIdentity
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 ProjectedTokenIdentity
impl Debug for ProjectedTokenIdentity
impl Eq for ProjectedTokenIdentity
Source§impl PartialEq for ProjectedTokenIdentity
impl PartialEq for ProjectedTokenIdentity
impl StructuralPartialEq for ProjectedTokenIdentity
Auto Trait Implementations§
impl Freeze for ProjectedTokenIdentity
impl RefUnwindSafe for ProjectedTokenIdentity
impl Send for ProjectedTokenIdentity
impl Sync for ProjectedTokenIdentity
impl Unpin for ProjectedTokenIdentity
impl UnsafeUnpin for ProjectedTokenIdentity
impl UnwindSafe for ProjectedTokenIdentity
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