pub struct FieldTypeBool {
pub required: bool,
pub name: String,
pub validators: Validators<bool>,
}Fields§
§required: bool§name: String§validators: Validators<bool>Trait Implementations§
Source§impl Default for FieldTypeBool
impl Default for FieldTypeBool
Source§fn default() -> FieldTypeBool
fn default() -> FieldTypeBool
Returns the “default value” for a type. Read more
Source§impl ModelField for FieldTypeBool
impl ModelField for FieldTypeBool
fn on_kernel_init(&mut self, model_name: &str) -> Result<(), HitError>
fn get_name(&self) -> String
fn validate( &self, value: &ObjectValue, context: &ValidatorContext<'_>, ) -> Result<Option<Vec<ValidationError>>, HitError>
fn accepts_for_set( &self, value: &ObjectValue, _context: &ValidatorContext<'_>, ) -> bool
fn accepts_model(&self, _model: &Model) -> bool
fn is_vec_reference(&self) -> bool
fn is_vec_subobject(&self) -> bool
Auto Trait Implementations§
impl Freeze for FieldTypeBool
impl !RefUnwindSafe for FieldTypeBool
impl !Send for FieldTypeBool
impl !Sync for FieldTypeBool
impl Unpin for FieldTypeBool
impl !UnwindSafe for FieldTypeBool
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