Struct hit_data::field_types::FieldTypeStringVec
source · pub struct FieldTypeStringVec {
pub required: bool,
pub name: String,
pub validators: Validators<String>,
pub _enum: Option<Vec<String>>,
}
Fields§
§required: bool
§name: String
§validators: Validators<String>
§_enum: Option<Vec<String>>
Trait Implementations§
source§impl Default for FieldTypeStringVec
impl Default for FieldTypeStringVec
source§fn default() -> FieldTypeStringVec
fn default() -> FieldTypeStringVec
Returns the “default value” for a type. Read more
source§impl ModelField for FieldTypeStringVec
impl ModelField for FieldTypeStringVec
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 !RefUnwindSafe for FieldTypeStringVec
impl !Send for FieldTypeStringVec
impl !Sync for FieldTypeStringVec
impl Unpin for FieldTypeStringVec
impl !UnwindSafe for FieldTypeStringVec
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