pub struct OAuthResponse(pub Value);Expand description
Output of the OAuth claims pipeline — the mutated User row, ready for persistence.
Wrapped in a #[serde(transparent)] newtype so the Value payload
can ride the bincode wire as a JSON-encoded string while
the Rust API stays close to the underlying serde_json::Value.
In-process callers construct with OAuthResponse(value) and unwrap
via response.0 or destructuring.
Tuple Fields§
§0: ValueImplementations§
Source§impl OAuthResponse
impl OAuthResponse
Sourcepub fn into_inner(self) -> Value
pub fn into_inner(self) -> Value
Unwrap to the inner Value.
Trait Implementations§
Source§impl Clone for OAuthResponse
impl Clone for OAuthResponse
Source§fn clone(&self) -> OAuthResponse
fn clone(&self) -> OAuthResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OAuthResponse
impl Debug for OAuthResponse
Source§impl<'de> Deserialize<'de> for OAuthResponse
impl<'de> Deserialize<'de> for OAuthResponse
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
Source§impl From<Value> for OAuthResponse
impl From<Value> for OAuthResponse
Auto Trait Implementations§
impl Freeze for OAuthResponse
impl RefUnwindSafe for OAuthResponse
impl Send for OAuthResponse
impl Sync for OAuthResponse
impl Unpin for OAuthResponse
impl UnsafeUnpin for OAuthResponse
impl UnwindSafe for OAuthResponse
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