pub enum OAuthErrorCode {
InvalidRequest,
InvalidClient,
InvalidGrant,
UnsupportedGrantType,
ServerError,
InvalidClientMetadata,
InvalidRedirectUri,
}Expand description
An OAuth 2.0 error code (RFC 6749 § 5.2, RFC 7591 § 3.2.2), the ones Agora’s endpoints send
Variants§
InvalidRequest
InvalidClient
InvalidGrant
UnsupportedGrantType
ServerError
InvalidClientMetadata
RFC 7591: the registration’s metadata is invalid
InvalidRedirectUri
RFC 7591: a redirect URI is invalid
Trait Implementations§
Source§impl Clone for OAuthErrorCode
impl Clone for OAuthErrorCode
impl Copy for OAuthErrorCode
Source§impl Debug for OAuthErrorCode
impl Debug for OAuthErrorCode
Source§impl<'de> Deserialize<'de> for OAuthErrorCode
impl<'de> Deserialize<'de> for OAuthErrorCode
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OAuthErrorCode
Source§impl Hash for OAuthErrorCode
impl Hash for OAuthErrorCode
Source§impl PartialEq for OAuthErrorCode
impl PartialEq for OAuthErrorCode
Source§impl Serialize for OAuthErrorCode
impl Serialize for OAuthErrorCode
impl StructuralPartialEq for OAuthErrorCode
Auto Trait Implementations§
impl Freeze for OAuthErrorCode
impl RefUnwindSafe for OAuthErrorCode
impl Send for OAuthErrorCode
impl Sync for OAuthErrorCode
impl Unpin for OAuthErrorCode
impl UnsafeUnpin for OAuthErrorCode
impl UnwindSafe for OAuthErrorCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.