#[non_exhaustive]pub struct FieldValidationMessage {
pub field_name: Option<String>,
pub identifier: Option<String>,
pub title: Option<String>,
pub content: Option<String>,
pub type: Option<String>,
}
Expand description
The message details.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.field_name: Option<String>
The field name.
identifier: Option<String>
The message ID.
title: Option<String>
The message title.
content: Option<String>
The message content.
type: Option<String>
The message type.
Implementations§
source§impl FieldValidationMessage
impl FieldValidationMessage
sourcepub fn field_name(&self) -> Option<&str>
pub fn field_name(&self) -> Option<&str>
The field name.
sourcepub fn identifier(&self) -> Option<&str>
pub fn identifier(&self) -> Option<&str>
The message ID.
source§impl FieldValidationMessage
impl FieldValidationMessage
sourcepub fn builder() -> FieldValidationMessageBuilder
pub fn builder() -> FieldValidationMessageBuilder
Creates a new builder-style object to manufacture FieldValidationMessage
.
Trait Implementations§
source§impl Clone for FieldValidationMessage
impl Clone for FieldValidationMessage
source§fn clone(&self) -> FieldValidationMessage
fn clone(&self) -> FieldValidationMessage
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 Debug for FieldValidationMessage
impl Debug for FieldValidationMessage
source§impl PartialEq for FieldValidationMessage
impl PartialEq for FieldValidationMessage
source§fn eq(&self, other: &FieldValidationMessage) -> bool
fn eq(&self, other: &FieldValidationMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FieldValidationMessage
Auto Trait Implementations§
impl Freeze for FieldValidationMessage
impl RefUnwindSafe for FieldValidationMessage
impl Send for FieldValidationMessage
impl Sync for FieldValidationMessage
impl Unpin for FieldValidationMessage
impl UnwindSafe for FieldValidationMessage
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.