pub struct SchemaValidatorConfigBuilder { /* private fields */ }
Expand description
Builder for schema validator configuration
Implementations§
Source§impl SchemaValidatorConfigBuilder
impl SchemaValidatorConfigBuilder
Sourcepub fn strict_mode(self, enabled: bool) -> Self
pub fn strict_mode(self, enabled: bool) -> Self
Enable strict mode
Sourcepub fn integrity_check(self, enabled: bool) -> Self
pub fn integrity_check(self, enabled: bool) -> Self
Enable integrity checking
Sourcepub fn backward_compatibility(self, enabled: bool) -> Self
pub fn backward_compatibility(self, enabled: bool) -> Self
Enable backward compatibility checking
Sourcepub fn max_schema_version(self, version: String) -> Self
pub fn max_schema_version(self, version: String) -> Self
Set maximum allowed schema version
Sourcepub fn add_custom_rule(self, rule: CustomValidationRule) -> Self
pub fn add_custom_rule(self, rule: CustomValidationRule) -> Self
Add a custom validation rule
Sourcepub fn build(self) -> SchemaValidatorConfig
pub fn build(self) -> SchemaValidatorConfig
Build the configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchemaValidatorConfigBuilder
impl RefUnwindSafe for SchemaValidatorConfigBuilder
impl Send for SchemaValidatorConfigBuilder
impl Sync for SchemaValidatorConfigBuilder
impl Unpin for SchemaValidatorConfigBuilder
impl UnwindSafe for SchemaValidatorConfigBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more