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