pub struct RecordFieldFragment { /* private fields */ }Expand description
One structural field in a named record type.
Composite fields carry exact type and nullability facts only. Insert, generation, and management policies belong to persisted entity fields.
Implementations§
Source§impl RecordFieldFragment
impl RecordFieldFragment
Sourcepub fn new(
name: SchemaName,
field_type: FieldType,
nullable: bool,
) -> RecordFieldFragment
pub fn new( name: SchemaName, field_type: FieldType, nullable: bool, ) -> RecordFieldFragment
Construct one exact structural record field.
Sourcepub const fn source_key(&self) -> &FieldSourceKey
pub const fn source_key(&self) -> &FieldSourceKey
Borrow the typed proposal key derived from the current field name.
Sourcepub const fn name(&self) -> &SchemaName
pub const fn name(&self) -> &SchemaName
Borrow the current record-field name.
Sourcepub const fn field_type(&self) -> &FieldType
pub const fn field_type(&self) -> &FieldType
Borrow the exact logical field type.
Trait Implementations§
Source§impl Clone for RecordFieldFragment
impl Clone for RecordFieldFragment
Source§fn clone(&self) -> RecordFieldFragment
fn clone(&self) -> RecordFieldFragment
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 RecordFieldFragment
impl Debug for RecordFieldFragment
impl Eq for RecordFieldFragment
Source§impl PartialEq for RecordFieldFragment
impl PartialEq for RecordFieldFragment
impl StructuralPartialEq for RecordFieldFragment
Auto Trait Implementations§
impl Freeze for RecordFieldFragment
impl RefUnwindSafe for RecordFieldFragment
impl Send for RecordFieldFragment
impl Sync for RecordFieldFragment
impl Unpin for RecordFieldFragment
impl UnsafeUnpin for RecordFieldFragment
impl UnwindSafe for RecordFieldFragment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.