Struct hit_data::field_types::FieldTypeString [−][src]
pub struct FieldTypeString { 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
impl Default for FieldTypeString
[src]
impl Default for FieldTypeString
[src]fn default() -> FieldTypeString
[src]
impl ModelField for FieldTypeString
[src]
impl ModelField for FieldTypeString
[src]fn on_kernel_init(&mut self, model_name: &str) -> Result<(), HitError>
[src]
fn get_name(&self) -> String
[src]
fn accepts_for_set(
&self,
value: &ObjectValue,
_context: &ValidatorContext<'_>
) -> bool
[src]
&self,
value: &ObjectValue,
_context: &ValidatorContext<'_>
) -> bool
fn accepts_model(&self, _model: &Model) -> bool
[src]
fn validate(
&self,
value: &ObjectValue,
context: &ValidatorContext<'_>
) -> Result<Option<Vec<ValidationError>>, HitError>
[src]
&self,
value: &ObjectValue,
context: &ValidatorContext<'_>
) -> Result<Option<Vec<ValidationError>>, HitError>
fn is_vec_reference(&self) -> bool
[src]
fn is_vec_subobject(&self) -> bool
[src]
Auto Trait Implementations
impl !RefUnwindSafe for FieldTypeString
impl !RefUnwindSafe for FieldTypeString
impl !Send for FieldTypeString
impl !Send for FieldTypeString
impl !Sync for FieldTypeString
impl !Sync for FieldTypeString
impl Unpin for FieldTypeString
impl Unpin for FieldTypeString
impl !UnwindSafe for FieldTypeString
impl !UnwindSafe for FieldTypeString