pub struct ReferenceReadProjection { /* private fields */ }Expand description
The nonrecursive identity/reference read facet.
Implementations§
Source§impl ReferenceReadProjection
impl ReferenceReadProjection
Sourcepub fn new(
target_name: Option<TargetIdentifier>,
key_fields: Vec<OwnsFactId>,
) -> Result<Self, Diagnostic>
pub fn new( target_name: Option<TargetIdentifier>, key_fields: Vec<OwnsFactId>, ) -> Result<Self, Diagnostic>
Construct a reference shape; attributes deliberately have no reference class.
Sourcepub const fn target_name(&self) -> Option<&TargetIdentifier>
pub const fn target_name(&self) -> Option<&TargetIdentifier>
Return the generated reference type name, if supported.
Sourcepub fn key_fields(&self) -> &[OwnsFactId]
pub fn key_fields(&self) -> &[OwnsFactId]
Return effective key fields in semantic order.
Sourcepub const fn construction_policy(&self) -> ReferenceConstructionPolicy
pub const fn construction_policy(&self) -> ReferenceConstructionPolicy
Return the explicit checked reference-construction policy.
Trait Implementations§
Source§impl Clone for ReferenceReadProjection
impl Clone for ReferenceReadProjection
Source§fn clone(&self) -> ReferenceReadProjection
fn clone(&self) -> ReferenceReadProjection
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 ReferenceReadProjection
impl Debug for ReferenceReadProjection
impl Eq for ReferenceReadProjection
Source§impl PartialEq for ReferenceReadProjection
impl PartialEq for ReferenceReadProjection
Source§impl Serialize for ReferenceReadProjection
impl Serialize for ReferenceReadProjection
impl StructuralPartialEq for ReferenceReadProjection
Auto Trait Implementations§
impl Freeze for ReferenceReadProjection
impl RefUnwindSafe for ReferenceReadProjection
impl Send for ReferenceReadProjection
impl Sync for ReferenceReadProjection
impl Unpin for ReferenceReadProjection
impl UnsafeUnpin for ReferenceReadProjection
impl UnwindSafe for ReferenceReadProjection
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