pub struct ArrayField {
pub name: String,
pub item: Option<Box<FieldEnum>>,
pub unique: Option<bool>,
}Fields§
§name: String§item: Option<Box<FieldEnum>>§unique: Option<bool>Trait Implementations§
Source§impl Debug for ArrayField
impl Debug for ArrayField
Source§impl<'de> Deserialize<'de> for ArrayField
impl<'de> Deserialize<'de> for ArrayField
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
Source§impl Field for ArrayField
impl Field for ArrayField
const FIELD_TYPE: FieldType = FieldType::Array
fn name(&self) -> String
fn constrains(&self) -> Vec<Box<dyn Constraint>>
Source§impl From<ArrayField> for FieldEnum
impl From<ArrayField> for FieldEnum
Source§fn from(value: ArrayField) -> Self
fn from(value: ArrayField) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArrayField
impl RefUnwindSafe for ArrayField
impl Send for ArrayField
impl Sync for ArrayField
impl Unpin for ArrayField
impl UnwindSafe for ArrayField
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