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