Struct hit_data::field_types::FieldTypeBool [−][src]
pub struct FieldTypeBool { pub required: bool, pub name: String, pub validators: Validators<bool>, }
Fields
required: bool
name: String
validators: Validators<bool>
Trait Implementations
impl Default for FieldTypeBool
[src]
impl Default for FieldTypeBool
[src]fn default() -> FieldTypeBool
[src]
impl ModelField for FieldTypeBool
[src]
impl ModelField for FieldTypeBool
[src]fn on_kernel_init(&mut self, model_name: &str) -> Result<(), HitError>
[src]
fn get_name(&self) -> String
[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 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 is_vec_reference(&self) -> bool
[src]
fn is_vec_subobject(&self) -> bool
[src]
Auto Trait Implementations
impl !RefUnwindSafe for FieldTypeBool
impl !RefUnwindSafe for FieldTypeBool
impl !Send for FieldTypeBool
impl !Send for FieldTypeBool
impl !Sync for FieldTypeBool
impl !Sync for FieldTypeBool
impl Unpin for FieldTypeBool
impl Unpin for FieldTypeBool
impl !UnwindSafe for FieldTypeBool
impl !UnwindSafe for FieldTypeBool