pub struct OAuthActionResponse {
pub kind: OAuthResponseKind,
pub payload: Value,
}Fields§
§kind: OAuthResponseKind§payload: ValueImplementations§
Source§impl OAuthActionResponse
impl OAuthActionResponse
pub fn parse(value: Value) -> Result<Self, OAuthExtensionError>
Sourcepub fn credential(&self) -> Result<Option<OAuthCredential>, OAuthExtensionError>
pub fn credential(&self) -> Result<Option<OAuthCredential>, OAuthExtensionError>
Parse the host-owned credential envelope. Provider-specific token aliases must be converted by the extension before this point.
Trait Implementations§
Source§impl Clone for OAuthActionResponse
impl Clone for OAuthActionResponse
Auto Trait Implementations§
impl Freeze for OAuthActionResponse
impl RefUnwindSafe for OAuthActionResponse
impl Send for OAuthActionResponse
impl Sync for OAuthActionResponse
impl Unpin for OAuthActionResponse
impl UnsafeUnpin for OAuthActionResponse
impl UnwindSafe for OAuthActionResponse
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