#[non_exhaustive]pub struct FieldValidationMessageBuilder { /* private fields */ }
Expand description
A builder for FieldValidationMessage
.
Implementations§
source§impl FieldValidationMessageBuilder
impl FieldValidationMessageBuilder
sourcepub fn field_name(self, input: impl Into<String>) -> Self
pub fn field_name(self, input: impl Into<String>) -> Self
The field name.
sourcepub fn set_field_name(self, input: Option<String>) -> Self
pub fn set_field_name(self, input: Option<String>) -> Self
The field name.
sourcepub fn get_field_name(&self) -> &Option<String>
pub fn get_field_name(&self) -> &Option<String>
The field name.
sourcepub fn identifier(self, input: impl Into<String>) -> Self
pub fn identifier(self, input: impl Into<String>) -> Self
The message ID.
sourcepub fn set_identifier(self, input: Option<String>) -> Self
pub fn set_identifier(self, input: Option<String>) -> Self
The message ID.
sourcepub fn get_identifier(&self) -> &Option<String>
pub fn get_identifier(&self) -> &Option<String>
The message ID.
sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
The message content.
sourcepub fn get_content(&self) -> &Option<String>
pub fn get_content(&self) -> &Option<String>
The message content.
sourcepub fn build(self) -> FieldValidationMessage
pub fn build(self) -> FieldValidationMessage
Consumes the builder and constructs a FieldValidationMessage
.
Trait Implementations§
source§impl Clone for FieldValidationMessageBuilder
impl Clone for FieldValidationMessageBuilder
source§fn clone(&self) -> FieldValidationMessageBuilder
fn clone(&self) -> FieldValidationMessageBuilder
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 FieldValidationMessageBuilder
impl Default for FieldValidationMessageBuilder
source§fn default() -> FieldValidationMessageBuilder
fn default() -> FieldValidationMessageBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for FieldValidationMessageBuilder
impl PartialEq for FieldValidationMessageBuilder
source§fn eq(&self, other: &FieldValidationMessageBuilder) -> bool
fn eq(&self, other: &FieldValidationMessageBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FieldValidationMessageBuilder
Auto Trait Implementations§
impl Freeze for FieldValidationMessageBuilder
impl RefUnwindSafe for FieldValidationMessageBuilder
impl Send for FieldValidationMessageBuilder
impl Sync for FieldValidationMessageBuilder
impl Unpin for FieldValidationMessageBuilder
impl UnwindSafe for FieldValidationMessageBuilder
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.