Struct vector_config_common::schema::SchemaSettings
source · pub struct SchemaSettings { /* private fields */ }
Expand description
Settings to customize how schemas are generated.
Implementations§
source§impl SchemaSettings
impl SchemaSettings
sourcepub fn new() -> SchemaSettings
pub fn new() -> SchemaSettings
Creates SchemaSettings
that conform to JSON Schema 2019-09.
sourcepub fn definitions_path(&self) -> &str
pub fn definitions_path(&self) -> &str
Gets the definitions path used by this generator.
sourcepub fn with_visitor<F, V>(self, visitor_fn: F) -> Self
pub fn with_visitor<F, V>(self, visitor_fn: F) -> Self
Creates a Visitor
from the given closure and appends it to the list of
visitors for these SchemaSettings
.
sourcepub fn into_generator(self) -> SchemaGenerator
pub fn into_generator(self) -> SchemaGenerator
Creates a new SchemaGenerator
using these settings.
Trait Implementations§
source§impl Debug for SchemaSettings
impl Debug for SchemaSettings
source§impl Default for SchemaSettings
impl Default for SchemaSettings
source§fn default() -> SchemaSettings
fn default() -> SchemaSettings
Returns the “default value” for a type. Read more
source§impl From<SchemaSettings> for SchemaGenerator
impl From<SchemaSettings> for SchemaGenerator
source§fn from(settings: SchemaSettings) -> Self
fn from(settings: SchemaSettings) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SchemaSettings
impl !RefUnwindSafe for SchemaSettings
impl !Send for SchemaSettings
impl !Sync for SchemaSettings
impl Unpin for SchemaSettings
impl !UnwindSafe for SchemaSettings
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