pub struct FieldRule {
pub field: String,
pub field_type: FieldType,
pub required: bool,
pub default: Option<Value>,
pub enum_values: Option<Vec<Value>>,
pub union_types: Option<Vec<FieldType>>,
pub constraints: Option<Constraints>,
pub rule: Option<Box<FieldRule>>,
pub children: Option<Vec<FieldRule>>,
pub is_array: bool,
}Fields§
§field: String§field_type: FieldType§required: bool§default: Option<Value>§enum_values: Option<Vec<Value>>§union_types: Option<Vec<FieldType>>§constraints: Option<Constraints>§rule: Option<Box<FieldRule>>§children: Option<Vec<FieldRule>>§is_array: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for FieldRule
impl RefUnwindSafe for FieldRule
impl Send for FieldRule
impl Sync for FieldRule
impl Unpin for FieldRule
impl UnsafeUnpin for FieldRule
impl UnwindSafe for FieldRule
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