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 Forget for FieldContract
impl Freeze for FieldContractwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const FieldType is !null: Freeze,
PhantomData<FieldType>: Freeze,
PhantomData<FieldConstraint>: Freeze,
NonZero<i32>: Freeze,
*const TypedValue is !null: Freeze,
PhantomData<TypedValue>: Freeze,
impl Move for FieldContract
impl RefUnwindSafe for FieldContract
impl Send for FieldContract
impl Sync for FieldContract
impl Unpin for FieldContract
impl UnsafeUnpin for FieldContractwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const FieldType is !null: UnsafeUnpin,
PhantomData<FieldType>: UnsafeUnpin,
PhantomData<FieldConstraint>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
*const TypedValue is !null: UnsafeUnpin,
PhantomData<TypedValue>: UnsafeUnpin,
impl UnwindSafe for FieldContractwhere
RawVecInner: UnwindSafe,
BoxRaw<FieldType>: UnwindSafe,
NonZero<i32>: UnwindSafe,
BoxRaw<TypedValue>: UnwindSafe,
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