pub struct SessionOptions {
pub ephemeral: bool,
pub timeout: Duration,
pub completion_page: Option<String>,
}Expand description
How the browser session is shown.
Fields§
§ephemeral: boolAsk for a browsing session that shares no cookies with the person’s browser, so the
provider does not know them from an earlier sign-in. Honored by Apple
(prefersEphemeralWebBrowserSession); the other platforms cannot and ignore it.
timeout: DurationHow long a loopback listener waits for the browser’s request before giving up with
AuthError::Timeout. The interactive sessions have no timeout of their own: the
person closes them.
completion_page: Option<String>The page the loopback listener answers the browser with. HTML; the default says the sign-in is done and the window can be closed.
Trait Implementations§
Source§impl Clone for SessionOptions
impl Clone for SessionOptions
Source§impl Debug for SessionOptions
impl Debug for SessionOptions
Source§impl Default for SessionOptions
impl Default for SessionOptions
impl Eq for SessionOptions
Source§impl PartialEq for SessionOptions
impl PartialEq for SessionOptions
impl StructuralPartialEq for SessionOptions
Auto Trait Implementations§
impl Forget for SessionOptions
impl Freeze for SessionOptions
impl Move for SessionOptions
impl RefUnwindSafe for SessionOptions
impl Send for SessionOptions
impl Sync for SessionOptions
impl Unpin for SessionOptions
impl UnsafeUnpin for SessionOptions
impl UnwindSafe for SessionOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more