#[non_exhaustive]pub struct ValidationStrategyBuilder { /* private fields */ }Expand description
A builder for ValidationStrategy.
Implementations§
source§impl ValidationStrategyBuilder
impl ValidationStrategyBuilder
sourcepub fn mode(self, input: ValidationStrategyMode) -> Self
pub fn mode(self, input: ValidationStrategyMode) -> Self
The mode of validation for the asset to be created or updated. When you set this value to STRICT, strict validation for every error is enforced. When you set this value to LENIENT, validation is skipped for specific UI errors.
sourcepub fn set_mode(self, input: Option<ValidationStrategyMode>) -> Self
pub fn set_mode(self, input: Option<ValidationStrategyMode>) -> Self
The mode of validation for the asset to be created or updated. When you set this value to STRICT, strict validation for every error is enforced. When you set this value to LENIENT, validation is skipped for specific UI errors.
sourcepub fn get_mode(&self) -> &Option<ValidationStrategyMode>
pub fn get_mode(&self) -> &Option<ValidationStrategyMode>
The mode of validation for the asset to be created or updated. When you set this value to STRICT, strict validation for every error is enforced. When you set this value to LENIENT, validation is skipped for specific UI errors.
sourcepub fn build(self) -> Result<ValidationStrategy, BuildError>
pub fn build(self) -> Result<ValidationStrategy, BuildError>
Consumes the builder and constructs a ValidationStrategy.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ValidationStrategyBuilder
impl Clone for ValidationStrategyBuilder
source§fn clone(&self) -> ValidationStrategyBuilder
fn clone(&self) -> ValidationStrategyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ValidationStrategyBuilder
impl Debug for ValidationStrategyBuilder
source§impl Default for ValidationStrategyBuilder
impl Default for ValidationStrategyBuilder
source§fn default() -> ValidationStrategyBuilder
fn default() -> ValidationStrategyBuilder
source§impl PartialEq for ValidationStrategyBuilder
impl PartialEq for ValidationStrategyBuilder
source§fn eq(&self, other: &ValidationStrategyBuilder) -> bool
fn eq(&self, other: &ValidationStrategyBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ValidationStrategyBuilder
Auto Trait Implementations§
impl Freeze for ValidationStrategyBuilder
impl RefUnwindSafe for ValidationStrategyBuilder
impl Send for ValidationStrategyBuilder
impl Sync for ValidationStrategyBuilder
impl Unpin for ValidationStrategyBuilder
impl UnwindSafe for ValidationStrategyBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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