Struct validations::Error
[−]
[src]
pub struct Error<T> where T: Debug + Any {
// some fields omitted
}
An individual validation error.
Methods
impl<T> Error<T> where T: Debug + Any
[src]
fn new<S>(message: S) -> Self where S: Into<String>
Constructs a validation error.
fn with_details<S>(message: S, details: T) -> Self where S: Into<String>
Constructs a validation error with additional details.
fn details(&self) -> Option<&T>
Additional contextual information about the error, if provided.
fn set_details(&mut self, details: T)
Sets the details of this error.
fn message(&self) -> &str
A human-readable message explaining the error.