pub struct FieldTypeSubobject {
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§
Source§impl Default for FieldTypeSubobject
impl Default for FieldTypeSubobject
Source§fn default() -> FieldTypeSubobject
fn default() -> FieldTypeSubobject
Returns the “default value” for a type. Read more
Source§impl ModelField for FieldTypeSubobject
impl ModelField for FieldTypeSubobject
fn on_kernel_init(&mut self, model_name: &str) -> Result<(), HitError>
fn accepts_for_set( &self, value: &ObjectValue, _context: &ValidatorContext<'_>, ) -> bool
fn accepts_model(&self, model: &Model) -> bool
fn get_name(&self) -> String
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 FieldTypeSubobject
impl !RefUnwindSafe for FieldTypeSubobject
impl !Send for FieldTypeSubobject
impl !Sync for FieldTypeSubobject
impl Unpin for FieldTypeSubobject
impl !UnwindSafe for FieldTypeSubobject
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