pub struct ValidationWarning {
pub field: String,
pub message: String,
pub suggestion: Option<String>,
}Expand description
A validation warning (non-fatal).
Fields§
§field: StringThe field or config key that triggered the warning
message: StringHuman-readable warning message
suggestion: Option<String>Optional suggestion for how to address the warning
Implementations§
Source§impl ValidationWarning
impl ValidationWarning
pub fn new( field: impl Into<String>, message: impl Into<String>, ) -> ValidationWarning
pub fn with_suggestion(self, suggestion: impl Into<String>) -> ValidationWarning
Trait Implementations§
Source§impl Clone for ValidationWarning
impl Clone for ValidationWarning
Source§fn clone(&self) -> ValidationWarning
fn clone(&self) -> ValidationWarning
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 moreAuto Trait Implementations§
impl Freeze for ValidationWarning
impl RefUnwindSafe for ValidationWarning
impl Send for ValidationWarning
impl Sync for ValidationWarning
impl Unpin for ValidationWarning
impl UnwindSafe for ValidationWarning
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