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.

Trait Implementations

impl<T> Display for Error<T> where T: Debug + Any
[src]

fn fmt(&self, f: &mut Formatter) -> FmtResult

impl<T> StdError for Error<T> where T: Debug + Any
[src]

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>
1.0.0

Derived Implementations

impl<T: Debug> Debug for Error<T> where T: Debug + Any
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result