pub struct HydrationFieldV2 { /* private fields */ }Expand description
One descriptor-qualified hydrated model field.
Implementations§
Source§impl HydrationFieldV2
impl HydrationFieldV2
Sourcepub fn new(
alias: impl Into<String>,
reference_owners: Vec<TypeId>,
attribute: AttributeId,
value_type: ValueTypeTag,
cardinality: Cardinality,
ordered: bool,
distinct: bool,
unique: bool,
) -> Self
pub fn new( alias: impl Into<String>, reference_owners: Vec<TypeId>, attribute: AttributeId, value_type: ValueTypeTag, cardinality: Cardinality, ordered: bool, distinct: bool, unique: bool, ) -> Self
Construct one field projection.
Sourcepub const fn attribute(&self) -> &AttributeId
pub const fn attribute(&self) -> &AttributeId
Return the provider attribute identity.
Sourcepub fn reference_owners(&self) -> &[TypeId]
pub fn reference_owners(&self) -> &[TypeId]
Return every owner descriptor under which this field can be referenced.
Sourcepub const fn value_type(&self) -> ValueTypeTag
pub const fn value_type(&self) -> ValueTypeTag
Return the scalar domain.
Sourcepub const fn cardinality(&self) -> Cardinality
pub const fn cardinality(&self) -> Cardinality
Return the effective ownership cardinality.
Trait Implementations§
Source§impl Clone for HydrationFieldV2
impl Clone for HydrationFieldV2
Source§fn clone(&self) -> HydrationFieldV2
fn clone(&self) -> HydrationFieldV2
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 HydrationFieldV2
impl Debug for HydrationFieldV2
Source§impl<'de> Deserialize<'de> for HydrationFieldV2
impl<'de> Deserialize<'de> for HydrationFieldV2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HydrationFieldV2
Source§impl PartialEq for HydrationFieldV2
impl PartialEq for HydrationFieldV2
Source§impl Serialize for HydrationFieldV2
impl Serialize for HydrationFieldV2
impl StructuralPartialEq for HydrationFieldV2
Auto Trait Implementations§
impl Freeze for HydrationFieldV2
impl RefUnwindSafe for HydrationFieldV2
impl Send for HydrationFieldV2
impl Sync for HydrationFieldV2
impl Unpin for HydrationFieldV2
impl UnsafeUnpin for HydrationFieldV2
impl UnwindSafe for HydrationFieldV2
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