#[non_exhaustive]pub struct CallbackParams {
pub code: String,
pub state: String,
}Expand description
Query parameters delivered by the OAuth provider to the callback route.
Deserialize this from the request query string with axum’s Query<CallbackParams>.
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: StringAuthorization code returned by the provider.
state: StringOpaque state value — must match the nonce stored in the OAuth cookie.
Trait Implementations§
Source§impl Clone for CallbackParams
impl Clone for CallbackParams
Source§fn clone(&self) -> CallbackParams
fn clone(&self) -> CallbackParams
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 CallbackParams
impl Debug for CallbackParams
Source§impl<'de> Deserialize<'de> for CallbackParams
impl<'de> Deserialize<'de> for CallbackParams
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
Auto Trait Implementations§
impl Freeze for CallbackParams
impl RefUnwindSafe for CallbackParams
impl Send for CallbackParams
impl Sync for CallbackParams
impl Unpin for CallbackParams
impl UnsafeUnpin for CallbackParams
impl UnwindSafe for CallbackParams
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