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) -> Self
pub fn new(name: SchemaName, field_type: FieldType, nullable: bool) -> Self
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 CandidType for RecordFieldFragment
impl CandidType for RecordFieldFragment
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
Source§impl<'de> Deserialize<'de> for RecordFieldFragment
impl<'de> Deserialize<'de> for RecordFieldFragment
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 RecordFieldFragment
Source§impl PartialEq for RecordFieldFragment
impl PartialEq for RecordFieldFragment
Source§impl Serialize for RecordFieldFragment
impl Serialize 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