pub struct ValidationMessage {
pub message: Option<String>,
pub namespace: Option<String>,
pub option_name: Option<String>,
pub severity: Option<String>,
}
Expand description
An error or warning for a desired configuration option value.
Fields§
§message: Option<String>
A message describing the error or warning.
namespace: Option<String>
The namespace to which the option belongs.
option_name: Option<String>
The name of the option.
severity: Option<String>
An indication of the severity of this message:
-
error
: This message indicates that this is not a valid setting for an option. -
warning
: This message is providing information you should take into account.
Trait Implementations§
Source§impl Clone for ValidationMessage
impl Clone for ValidationMessage
Source§fn clone(&self) -> ValidationMessage
fn clone(&self) -> ValidationMessage
Returns a duplicate 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 ValidationMessage
impl Debug for ValidationMessage
Source§impl Default for ValidationMessage
impl Default for ValidationMessage
Source§fn default() -> ValidationMessage
fn default() -> ValidationMessage
Returns the “default value” for a type. Read more
Source§impl PartialEq for ValidationMessage
impl PartialEq for ValidationMessage
impl StructuralPartialEq for ValidationMessage
Auto Trait Implementations§
impl Freeze for ValidationMessage
impl RefUnwindSafe for ValidationMessage
impl Send for ValidationMessage
impl Sync for ValidationMessage
impl Unpin for ValidationMessage
impl UnwindSafe for ValidationMessage
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