pub struct PageContext<'a> { /* private fields */ }Expand description
Context provided to SuccessPageRenderer implementations.
Implementations§
Source§impl<'a> PageContext<'a>
impl<'a> PageContext<'a>
Sourcepub const fn scopes(&self) -> &[OAuth2Scope]
pub const fn scopes(&self) -> &[OAuth2Scope]
Scopes that were requested.
Sourcepub const fn redirect_uri(&self) -> &Url
pub const fn redirect_uri(&self) -> &Url
Redirect URI used in the authorization request.
Sourcepub const fn expires_at(&self) -> Option<SystemTime>
pub const fn expires_at(&self) -> Option<SystemTime>
Time at which the access token expires, if the provider returned one.
Sourcepub const fn has_refresh_token(&self) -> bool
pub const fn has_refresh_token(&self) -> bool
Whether a refresh token was obtained.
Auto Trait Implementations§
impl<'a> Freeze for PageContext<'a>
impl<'a> RefUnwindSafe for PageContext<'a>
impl<'a> Send for PageContext<'a>
impl<'a> Sync for PageContext<'a>
impl<'a> Unpin for PageContext<'a>
impl<'a> UnsafeUnpin for PageContext<'a>
impl<'a> UnwindSafe for PageContext<'a>
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