pub struct FieldDefinition {
pub data_type: DataType,
pub length_type: LengthType,
pub max_len: u16,
}Expand description
Field definition - small, copyable, stored in static memory
Fields§
§data_type: DataTypeData type of the field
length_type: LengthTypeLength encoding type
max_len: u16Maximum length in bytes
Implementations§
Source§impl FieldDefinition
impl FieldDefinition
Sourcepub const fn new(
data_type: DataType,
length_type: LengthType,
max_len: u16,
) -> Self
pub const fn new( data_type: DataType, length_type: LengthType, max_len: u16, ) -> Self
Create a new field definition
Trait Implementations§
Source§impl Clone for FieldDefinition
impl Clone for FieldDefinition
Source§fn clone(&self) -> FieldDefinition
fn clone(&self) -> FieldDefinition
Returns a duplicate of the value. Read more
1.0.0 · 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 FieldDefinition
impl Debug for FieldDefinition
Source§impl PartialEq for FieldDefinition
impl PartialEq for FieldDefinition
impl Copy for FieldDefinition
impl Eq for FieldDefinition
impl StructuralPartialEq for FieldDefinition
Auto Trait Implementations§
impl Freeze for FieldDefinition
impl RefUnwindSafe for FieldDefinition
impl Send for FieldDefinition
impl Sync for FieldDefinition
impl Unpin for FieldDefinition
impl UnsafeUnpin for FieldDefinition
impl UnwindSafe for FieldDefinition
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