pub struct FieldFragment { /* private fields */ }Expand description
One field definition keyed by its current source name.
Implementations§
Source§impl FieldFragment
impl FieldFragment
Sourcepub fn new(
name: SchemaName,
field_type: FieldType,
nullable: bool,
insert_policy: FieldInsertPolicy,
management: Option<FieldManagementPolicy>,
) -> FieldFragment
pub fn new( name: SchemaName, field_type: FieldType, nullable: bool, insert_policy: FieldInsertPolicy, management: Option<FieldManagementPolicy>, ) -> FieldFragment
Construct one field definition.
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 field name.
Sourcepub const fn field_type(&self) -> &FieldType
pub const fn field_type(&self) -> &FieldType
Borrow the logical field type.
Sourcepub const fn insert_policy(&self) -> &FieldInsertPolicy
pub const fn insert_policy(&self) -> &FieldInsertPolicy
Borrow the future-write insert policy.
Sourcepub const fn management(&self) -> Option<FieldManagementPolicy>
pub const fn management(&self) -> Option<FieldManagementPolicy>
Return the optional accepted management policy.
Trait Implementations§
Source§impl Clone for FieldFragment
impl Clone for FieldFragment
Source§fn clone(&self) -> FieldFragment
fn clone(&self) -> FieldFragment
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 FieldFragment
impl Debug for FieldFragment
impl Eq for FieldFragment
Source§impl PartialEq for FieldFragment
impl PartialEq for FieldFragment
impl StructuralPartialEq for FieldFragment
Auto Trait Implementations§
impl Freeze for FieldFragment
impl RefUnwindSafe for FieldFragment
impl Send for FieldFragment
impl Sync for FieldFragment
impl Unpin for FieldFragment
impl UnsafeUnpin for FieldFragment
impl UnwindSafe for FieldFragment
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.