pub enum BriteVerifyClientError {
MissingApiKey,
InvalidApiKey,
UnbuildableRequest(Error),
UnclonableRequest,
MismatchedVerificationResponse(Box<VerificationResponse>),
BulkListNotFound(Box<BulkListCRUDError>),
InvalidHeaderValue(InvalidHeaderValue),
InvalidBaseUrl(ParseError),
UnusableRequest(BriteVerifyTypeError),
UnusableResponse(Box<Response>),
Other(Error),
}Expand description
Errors encountered when building a
BriteVerifyClient
instance with a customized configuration
Variants§
MissingApiKey
No API key provided when constructing a
BriteVerifyClient
instance
InvalidApiKey
The API key provided when constructing a
BriteVerifyClient
instance is either invalid or unauthorized
UnbuildableRequest(Error)
A request cannot be “built” for sending
UnclonableRequest
A request cannot be cloned when automatic rate-limit retry is enabled
MismatchedVerificationResponse(Box<VerificationResponse>)
The BriteVerify API responded to a single-transaction verification request with data that it shouldn’t have or omitted data it should have included
BulkListNotFound(Box<BulkListCRUDError>)
No bulk verification list exists for a given identifier
InvalidHeaderValue(InvalidHeaderValue)
Invalid or unusable API key provided when constructing
a BriteVerifyClient instance
InvalidBaseUrl(ParseError)
Invalid or unusable base url provided when constructing
a BriteVerifyClient instance
UnusableRequest(BriteVerifyTypeError)
A usable request could not be created
UnusableResponse(Box<Response>)
The BriteVerify API returned an unusable response (based on HTTP status code)
Other(Error)
A catch-all error for any other errors encountered
Trait Implementations§
Source§impl Debug for BriteVerifyClientError
impl Debug for BriteVerifyClientError
Source§impl Display for BriteVerifyClientError
impl Display for BriteVerifyClientError
Source§impl Error for BriteVerifyClientError
impl Error for BriteVerifyClientError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<BriteVerifyTypeError> for BriteVerifyClientError
impl From<BriteVerifyTypeError> for BriteVerifyClientError
Source§fn from(source: BriteVerifyTypeError) -> Self
fn from(source: BriteVerifyTypeError) -> Self
Source§impl From<Error> for BriteVerifyClientError
impl From<Error> for BriteVerifyClientError
Source§impl From<Error> for BriteVerifyClientError
impl From<Error> for BriteVerifyClientError
Source§impl From<InvalidHeaderValue> for BriteVerifyClientError
impl From<InvalidHeaderValue> for BriteVerifyClientError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Source§impl From<ParseError> for BriteVerifyClientError
impl From<ParseError> for BriteVerifyClientError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Auto Trait Implementations§
impl Freeze for BriteVerifyClientError
impl !RefUnwindSafe for BriteVerifyClientError
impl Send for BriteVerifyClientError
impl Sync for BriteVerifyClientError
impl Unpin for BriteVerifyClientError
impl !UnwindSafe for BriteVerifyClientError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more