pub struct ProjectedAnnotation { /* private fields */ }Expand description
One effective annotation retained in runtime projection metadata.
The ID names the effective projected subject, not the direct declaration
from which an inherited value originated. Type, ownership, related-role,
and playing annotations therefore use the actual projected owner or player.
For an inherited related role, the annotation-only subject remints the role
label under the effective relation while RoleTokenProjection::role
retains the canonical declaring-role identity.
Implementations§
Source§impl ProjectedAnnotation
impl ProjectedAnnotation
Sourcepub fn new(
id: AnnotationFactId,
value: SchemaAnnotationValue,
) -> Result<Self, Diagnostic>
pub fn new( id: AnnotationFactId, value: SchemaAnnotationValue, ) -> Result<Self, Diagnostic>
Construct one projected annotation through the authoritative annotation contract.
Sourcepub const fn id(&self) -> &AnnotationFactId
pub const fn id(&self) -> &AnnotationFactId
Return the effective-subject annotation identity.
Sourcepub const fn value(&self) -> &SchemaAnnotationValue
pub const fn value(&self) -> &SchemaAnnotationValue
Return the effective annotation value.
Trait Implementations§
Source§impl Clone for ProjectedAnnotation
impl Clone for ProjectedAnnotation
Source§fn clone(&self) -> ProjectedAnnotation
fn clone(&self) -> ProjectedAnnotation
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 ProjectedAnnotation
impl Debug for ProjectedAnnotation
impl Eq for ProjectedAnnotation
Source§impl PartialEq for ProjectedAnnotation
impl PartialEq for ProjectedAnnotation
Source§impl Serialize for ProjectedAnnotation
impl Serialize for ProjectedAnnotation
impl StructuralPartialEq for ProjectedAnnotation
Auto Trait Implementations§
impl Freeze for ProjectedAnnotation
impl RefUnwindSafe for ProjectedAnnotation
impl Send for ProjectedAnnotation
impl Sync for ProjectedAnnotation
impl Unpin for ProjectedAnnotation
impl UnsafeUnpin for ProjectedAnnotation
impl UnwindSafe for ProjectedAnnotation
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