pub struct AdditionalField {
pub field_type: DbFieldType,
pub required: bool,
pub input: bool,
pub returned: bool,
pub unique: bool,
pub index: bool,
pub default_value: Option<DbValue>,
pub db_name: Option<String>,
}Fields§
§field_type: DbFieldType§required: bool§input: bool§returned: bool§unique: bool§index: bool§default_value: Option<DbValue>§db_name: Option<String>Implementations§
Source§impl AdditionalField
impl AdditionalField
pub fn new(field_type: DbFieldType) -> Self
pub fn optional(self) -> Self
pub fn generated(self) -> Self
pub fn unique(self) -> Self
pub fn indexed(self) -> Self
pub fn default_value(self, value: DbValue) -> Self
pub fn db_name(self, db_name: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for AdditionalField
impl Clone for AdditionalField
Source§fn clone(&self) -> AdditionalField
fn clone(&self) -> AdditionalField
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 AdditionalField
impl Debug for AdditionalField
Source§impl PartialEq for AdditionalField
impl PartialEq for AdditionalField
Source§fn eq(&self, other: &AdditionalField) -> bool
fn eq(&self, other: &AdditionalField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AdditionalField
Auto Trait Implementations§
impl Freeze for AdditionalField
impl RefUnwindSafe for AdditionalField
impl Send for AdditionalField
impl Sync for AdditionalField
impl Unpin for AdditionalField
impl UnsafeUnpin for AdditionalField
impl UnwindSafe for AdditionalField
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