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