Struct modio::auth::SwitchOptions
source · pub struct SwitchOptions { /* private fields */ }
Expand description
Authentication options for the NSA ID token.
See the mod.io docs for more information.
Implementations§
source§impl SwitchOptions
impl SwitchOptions
pub fn new<T>(id_token: T) -> Self
pub fn email<S: Into<String>>(self, value: S) -> Self
sourcepub fn expired_at(self, value: u64) -> Self
pub fn expired_at(self, value: u64) -> Self
Unix timestamp of date in which the returned token will expire. Value cannot be higher than the default value which is a common year.
pub fn terms_agreed(self, value: bool) -> Self
Trait Implementations§
source§impl From<SwitchOptions> for AuthOptions
impl From<SwitchOptions> for AuthOptions
source§fn from(options: SwitchOptions) -> AuthOptions
fn from(options: SwitchOptions) -> AuthOptions
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SwitchOptions
impl RefUnwindSafe for SwitchOptions
impl Send for SwitchOptions
impl Sync for SwitchOptions
impl Unpin for SwitchOptions
impl UnwindSafe for SwitchOptions
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