#[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 ==
.