pub enum ValidationError {
BadUrl(String),
BadFormat(String),
MissingData(String),
OutOfBounds(String),
Incompatible(String),
}
Expand description
Errors from validating B2 requests prior to making the request.
Variants§
BadUrl(String)
Failure to parse a URL.
The string the problematic URL.
BadFormat(String)
The data is an invalid format or contains invalid information.
The string is a short description of the failure.
MissingData(String)
Required information was not provided.
The string is a short description of the failure.
OutOfBounds(String)
The data is outside its valid range.
The string is a short description of the failure.
Incompatible(String)
Two pieces of data are incompatible together.
The string is a short description of the failure.
Trait Implementations§
Source§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ParseError> for ValidationError
impl From<ParseError> for ValidationError
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
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