#[non_exhaustive]pub struct ExchangeError {
pub code: String,
pub description: String,
/* private fields */
}Expand description
Message for representing an error from exchanging OAuth tokens.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: String§description: Stringhttps://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error_description
Implementations§
Trait Implementations§
Source§impl Clone for ExchangeError
impl Clone for ExchangeError
Source§fn clone(&self) -> ExchangeError
fn clone(&self) -> ExchangeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExchangeError
impl Debug for ExchangeError
Source§impl Default for ExchangeError
impl Default for ExchangeError
Source§fn default() -> ExchangeError
fn default() -> ExchangeError
Returns the “default value” for a type. Read more
Source§impl Message for ExchangeError
impl Message for ExchangeError
Source§impl PartialEq for ExchangeError
impl PartialEq for ExchangeError
impl StructuralPartialEq for ExchangeError
Auto Trait Implementations§
impl Freeze for ExchangeError
impl RefUnwindSafe for ExchangeError
impl Send for ExchangeError
impl Sync for ExchangeError
impl Unpin for ExchangeError
impl UnwindSafe for ExchangeError
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