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 From<SendAccessTokenApiErrorResponse> for JsValue
impl From<SendAccessTokenApiErrorResponse> for JsValue
Source§fn from(value: SendAccessTokenApiErrorResponse) -> Self
fn from(value: SendAccessTokenApiErrorResponse) -> Self
Source§impl FromWasmAbi for SendAccessTokenApiErrorResponsewhere
Self: DeserializeOwned,
impl FromWasmAbi for SendAccessTokenApiErrorResponsewhere
Self: DeserializeOwned,
Source§impl OptionFromWasmAbi for SendAccessTokenApiErrorResponsewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for SendAccessTokenApiErrorResponsewhere
Self: DeserializeOwned,
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 ==
.Source§impl RefFromWasmAbi for SendAccessTokenApiErrorResponsewhere
Self: DeserializeOwned,
impl RefFromWasmAbi for SendAccessTokenApiErrorResponsewhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
Self
are recovered from.Source§type Anchor = SelfOwner<SendAccessTokenApiErrorResponse>
type Anchor = SelfOwner<SendAccessTokenApiErrorResponse>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Tsify for SendAccessTokenApiErrorResponse
impl Tsify for SendAccessTokenApiErrorResponse
const DECL: &'static str = "/**\n * Represents the possible, expected errors that can occur when requesting a send access token.\n */\nexport type SendAccessTokenApiErrorResponse = { error: \"invalid_request\"; error_description?: string; send_access_error_type?: SendAccessTokenInvalidRequestError } | { error: \"invalid_grant\"; error_description?: string; send_access_error_type?: SendAccessTokenInvalidGrantError } | { error: \"invalid_client\"; error_description?: string } | { error: \"unauthorized_client\"; error_description?: string } | { error: \"unsupported_grant_type\"; error_description?: string } | { error: \"invalid_scope\"; error_description?: string } | { error: \"invalid_target\"; error_description?: string };"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for SendAccessTokenApiErrorResponsewhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for SendAccessTokenApiErrorResponsewhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for SendAccessTokenApiErrorResponse
impl VectorIntoWasmAbi for SendAccessTokenApiErrorResponse
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
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 UnwindSafe for SendAccessTokenApiErrorResponse
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.