pub struct ObjectSchemaOptions {
pub omit_file_types: bool,
pub all_fields_required: bool,
pub set_dates_to: Option<Date>,
pub name: Option<String>,
pub property_overrides: HashMap<FieldType, Map<String, Value>>,
pub omit_paths: Option<Vec<ValuePath>>,
}Fields§
§omit_file_types: bool§all_fields_required: bool§set_dates_to: Option<Date>§name: Option<String>§property_overrides: HashMap<FieldType, Map<String, Value>>§omit_paths: Option<Vec<ValuePath>>Implementations§
Source§impl ObjectSchemaOptions
impl ObjectSchemaOptions
pub fn with_overrides( self, field_type: FieldType, props: Map<String, Value>, ) -> Self
pub fn without_file_types(self) -> Self
pub fn with_all_fields_required(self) -> Self
pub fn with_name(self, name: String) -> Self
pub fn with_date(self, date: Date) -> Self
pub fn with_omit_paths(self, paths: Option<Vec<ValuePath>>) -> Self
Trait Implementations§
Source§impl Debug for ObjectSchemaOptions
impl Debug for ObjectSchemaOptions
Source§impl Default for ObjectSchemaOptions
impl Default for ObjectSchemaOptions
Source§fn default() -> ObjectSchemaOptions
fn default() -> ObjectSchemaOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ObjectSchemaOptions
impl RefUnwindSafe for ObjectSchemaOptions
impl Send for ObjectSchemaOptions
impl Sync for ObjectSchemaOptions
impl Unpin for ObjectSchemaOptions
impl UnwindSafe for ObjectSchemaOptions
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