pub struct FieldContract {
pub name: String,
pub field_type: FieldType,
pub optional: bool,
pub constraints: Vec<FieldConstraint>,
pub default: Option<TypedValue>,
}Fields§
§name: String§field_type: FieldType§optional: bool§constraints: Vec<FieldConstraint>§default: Option<TypedValue>Entity fields only.
Trait Implementations§
Source§impl Clone for FieldContract
impl Clone for FieldContract
Source§impl Debug for FieldContract
impl Debug for FieldContract
Source§impl<'de> Deserialize<'de> for FieldContract
impl<'de> Deserialize<'de> for FieldContract
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 PartialEq for FieldContract
impl PartialEq for FieldContract
Source§impl Serialize for FieldContract
impl Serialize for FieldContract
impl StructuralPartialEq for FieldContract
Auto Trait Implementations§
impl Freeze for FieldContract
impl RefUnwindSafe for FieldContract
impl Send for FieldContract
impl Sync for FieldContract
impl Unpin for FieldContract
impl UnsafeUnpin for FieldContract
impl UnwindSafe for FieldContract
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