#[non_exhaustive]pub struct PropertyValidationExceptionPropertyBuilder { /* private fields */ }
Expand description
A builder for PropertyValidationExceptionProperty
.
Implementations§
source§impl PropertyValidationExceptionPropertyBuilder
impl PropertyValidationExceptionPropertyBuilder
sourcepub fn property_path(self, input: impl Into<String>) -> Self
pub fn property_path(self, input: impl Into<String>) -> Self
The full property path.
This field is required.sourcepub fn set_property_path(self, input: Option<String>) -> Self
pub fn set_property_path(self, input: Option<String>) -> Self
The full property path.
sourcepub fn get_property_path(&self) -> &Option<String>
pub fn get_property_path(&self) -> &Option<String>
The full property path.
sourcepub fn reason(self, input: PropertyValidationExceptionReason) -> Self
pub fn reason(self, input: PropertyValidationExceptionReason) -> Self
Why the property is not valid.
This field is required.sourcepub fn set_reason(
self,
input: Option<PropertyValidationExceptionReason>
) -> Self
pub fn set_reason( self, input: Option<PropertyValidationExceptionReason> ) -> Self
Why the property is not valid.
sourcepub fn get_reason(&self) -> &Option<PropertyValidationExceptionReason>
pub fn get_reason(&self) -> &Option<PropertyValidationExceptionReason>
Why the property is not valid.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
A message describing why the property is not valid.
This field is required.sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
A message describing why the property is not valid.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
A message describing why the property is not valid.
sourcepub fn build(self) -> Result<PropertyValidationExceptionProperty, BuildError>
pub fn build(self) -> Result<PropertyValidationExceptionProperty, BuildError>
Consumes the builder and constructs a PropertyValidationExceptionProperty
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PropertyValidationExceptionPropertyBuilder
impl Clone for PropertyValidationExceptionPropertyBuilder
source§fn clone(&self) -> PropertyValidationExceptionPropertyBuilder
fn clone(&self) -> PropertyValidationExceptionPropertyBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for PropertyValidationExceptionPropertyBuilder
impl Default for PropertyValidationExceptionPropertyBuilder
source§fn default() -> PropertyValidationExceptionPropertyBuilder
fn default() -> PropertyValidationExceptionPropertyBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PropertyValidationExceptionPropertyBuilder
impl PartialEq for PropertyValidationExceptionPropertyBuilder
source§fn eq(&self, other: &PropertyValidationExceptionPropertyBuilder) -> bool
fn eq(&self, other: &PropertyValidationExceptionPropertyBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PropertyValidationExceptionPropertyBuilder
Auto Trait Implementations§
impl Freeze for PropertyValidationExceptionPropertyBuilder
impl RefUnwindSafe for PropertyValidationExceptionPropertyBuilder
impl Send for PropertyValidationExceptionPropertyBuilder
impl Sync for PropertyValidationExceptionPropertyBuilder
impl Unpin for PropertyValidationExceptionPropertyBuilder
impl UnwindSafe for PropertyValidationExceptionPropertyBuilder
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>
Creates a shared type from an unshared type.