pub struct EntityField {
pub name: String,
pub field_type: FieldType,
pub indexed: bool,
pub nullable: bool,
}Expand description
A single field in an entity schema.
Describes the name, type, and indexing behavior of one column.
Fields§
§name: StringThe field name (column name).
field_type: FieldTypeThe field type.
indexed: boolWhether a database index should be created on this field.
nullable: boolWhether the field can be NULL.
Trait Implementations§
Source§impl Clone for EntityField
impl Clone for EntityField
Source§fn clone(&self) -> EntityField
fn clone(&self) -> EntityField
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 EntityField
impl Debug for EntityField
Source§impl<'de> Deserialize<'de> for EntityField
impl<'de> Deserialize<'de> for EntityField
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
Auto Trait Implementations§
impl Freeze for EntityField
impl RefUnwindSafe for EntityField
impl Send for EntityField
impl Sync for EntityField
impl Unpin for EntityField
impl UnsafeUnpin for EntityField
impl UnwindSafe for EntityField
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