pub struct FieldTokenProjection { /* private fields */ }Expand description
One owner-branded owned-attribute query token.
Implementations§
Source§impl FieldTokenProjection
impl FieldTokenProjection
Sourcepub fn new(
id: OwnsFactId,
declaring_id: OwnsFactId,
target_name: TargetIdentifier,
multiplicity: ProjectedMultiplicity,
key: bool,
unique: bool,
annotations: BTreeMap<AnnotationFactId, ProjectedAnnotation>,
) -> Result<Self, Diagnostic>
pub fn new( id: OwnsFactId, declaring_id: OwnsFactId, target_name: TargetIdentifier, multiplicity: ProjectedMultiplicity, key: bool, unique: bool, annotations: BTreeMap<AnnotationFactId, ProjectedAnnotation>, ) -> Result<Self, Diagnostic>
Construct a projected owned-attribute token.
Sourcepub const fn id(&self) -> &OwnsFactId
pub const fn id(&self) -> &OwnsFactId
Return the effective ownership identity.
Sourcepub const fn declaring_id(&self) -> &OwnsFactId
pub const fn declaring_id(&self) -> &OwnsFactId
Return the declaring ownership identity.
Sourcepub const fn target_name(&self) -> &TargetIdentifier
pub const fn target_name(&self) -> &TargetIdentifier
Return the emitted member name.
Sourcepub const fn multiplicity(&self) -> ProjectedMultiplicity
pub const fn multiplicity(&self) -> ProjectedMultiplicity
Return resolved requiredness and container shape.
Sourcepub const fn annotations(
&self,
) -> &BTreeMap<AnnotationFactId, ProjectedAnnotation>
pub const fn annotations( &self, ) -> &BTreeMap<AnnotationFactId, ProjectedAnnotation>
Return effective annotations.
Trait Implementations§
Source§impl Clone for FieldTokenProjection
impl Clone for FieldTokenProjection
Source§impl Debug for FieldTokenProjection
impl Debug for FieldTokenProjection
impl Eq for FieldTokenProjection
Source§impl PartialEq for FieldTokenProjection
impl PartialEq for FieldTokenProjection
Source§impl Serialize for FieldTokenProjection
impl Serialize for FieldTokenProjection
impl StructuralPartialEq for FieldTokenProjection
Auto Trait Implementations§
impl Freeze for FieldTokenProjection
impl RefUnwindSafe for FieldTokenProjection
impl Send for FieldTokenProjection
impl Sync for FieldTokenProjection
impl Unpin for FieldTokenProjection
impl UnsafeUnpin for FieldTokenProjection
impl UnwindSafe for FieldTokenProjection
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