Enum b2_client::error::ValidationError
source · [−]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
sourceimpl Debug for ValidationError
impl Debug for ValidationError
sourceimpl Display for ValidationError
impl Display for ValidationError
sourceimpl Error for ValidationError
impl Error for ValidationError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<ParseError> for ValidationError
impl From<ParseError> for ValidationError
sourcefn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Performs the conversion.
sourceimpl<E> From<ValidationError> for Error<E> where
E: Debug + Display,
impl<E> From<ValidationError> for Error<E> where
E: Debug + Display,
sourcefn from(e: ValidationError) -> Self
fn from(e: ValidationError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more