pub enum SendAccessTokenApiErrorResponse {
InvalidRequest {
error_description: Option<String>,
send_access_error_type: Option<SendAccessTokenInvalidRequestError>,
},
InvalidGrant {
error_description: Option<String>,
send_access_error_type: Option<SendAccessTokenInvalidGrantError>,
},
InvalidClient {
error_description: Option<String>,
},
UnauthorizedClient {
error_description: Option<String>,
},
UnsupportedGrantType {
error_description: Option<String>,
},
InvalidScope {
error_description: Option<String>,
},
InvalidTarget {
error_description: Option<String>,
},
}Expand description
Represents the possible, expected errors that can occur when requesting a send access token.
Variants§
InvalidRequest
Invalid request error, typically due to missing parameters for a specific
credential flow. Ex. send_id is required.
Fields
send_access_error_type: Option<SendAccessTokenInvalidRequestError>The optional specific error type for invalid request errors.
InvalidGrant
Invalid grant error, typically due to invalid credentials.
Fields
send_access_error_type: Option<SendAccessTokenInvalidGrantError>The optional specific error type for invalid grant errors.
InvalidClient
Invalid client error, typically due to an invalid client secret or client ID.
Unauthorized client error, typically due to an unauthorized client.
Fields
The optional error description for unauthorized client errors.
UnsupportedGrantType
Unsupported grant type error, typically due to an unsupported credential flow. Note: during initial feature rollout, this will be used to indicate that the feature flag is disabled.
Fields
InvalidScope
Invalid scope error, typically due to an invalid scope requested.
InvalidTarget
Invalid target error which is shown if the requested resource is invalid, missing, unknown, or malformed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SendAccessTokenApiErrorResponse
impl<'de> Deserialize<'de> for SendAccessTokenApiErrorResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SendAccessTokenApiErrorResponse
impl PartialEq for SendAccessTokenApiErrorResponse
Source§fn eq(&self, other: &SendAccessTokenApiErrorResponse) -> bool
fn eq(&self, other: &SendAccessTokenApiErrorResponse) -> bool
self and other values to be equal, and is used by ==.impl Eq for SendAccessTokenApiErrorResponse
impl StructuralPartialEq for SendAccessTokenApiErrorResponse
Auto Trait Implementations§
impl Freeze for SendAccessTokenApiErrorResponse
impl RefUnwindSafe for SendAccessTokenApiErrorResponse
impl Send for SendAccessTokenApiErrorResponse
impl Sync for SendAccessTokenApiErrorResponse
impl Unpin for SendAccessTokenApiErrorResponse
impl UnsafeUnpin for SendAccessTokenApiErrorResponse
impl UnwindSafe for SendAccessTokenApiErrorResponse
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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