Struct modio::auth::ItchioOptions
source · pub struct ItchioOptions { /* private fields */ }
Expand description
Authentication options for an itch.io JWT token.
See the mod.io docs for more information.
Implementations§
source§impl ItchioOptions
impl ItchioOptions
pub fn new<T>(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 week.
pub fn terms_agreed(self, value: bool) -> Self
Auto Trait Implementations§
impl Freeze for ItchioOptions
impl RefUnwindSafe for ItchioOptions
impl Send for ItchioOptions
impl Sync for ItchioOptions
impl Unpin for ItchioOptions
impl UnwindSafe for ItchioOptions
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