pub struct OneTimeTokenOptions {
pub expires_in: u64,
pub disable_client_request: bool,
pub generate_token: Option<GenerateToken>,
pub disable_set_session_cookie: bool,
pub store_token: StoreToken,
pub set_ott_header_on_new_session: bool,
}Fields§
§expires_in: u64§disable_client_request: bool§generate_token: Option<GenerateToken>§store_token: StoreToken§set_ott_header_on_new_session: boolImplementations§
Source§impl OneTimeTokenOptions
impl OneTimeTokenOptions
pub fn expires_in_minutes(self, minutes: u64) -> Self
pub fn disable_client_request(self, disable: bool) -> Self
pub fn generate_token<F>(self, generate: F) -> Selfwhere
F: Fn(&OneTimeTokenSession, &AuthContext) -> Result<String, OpenAuthError> + Send + Sync + 'static,
pub fn store_token(self, store_token: StoreToken) -> Self
pub fn set_ott_header_on_new_session(self, set_header: bool) -> Self
Trait Implementations§
Source§impl Clone for OneTimeTokenOptions
impl Clone for OneTimeTokenOptions
Source§fn clone(&self) -> OneTimeTokenOptions
fn clone(&self) -> OneTimeTokenOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OneTimeTokenOptions
impl !RefUnwindSafe for OneTimeTokenOptions
impl Send for OneTimeTokenOptions
impl Sync for OneTimeTokenOptions
impl Unpin for OneTimeTokenOptions
impl UnsafeUnpin for OneTimeTokenOptions
impl !UnwindSafe for OneTimeTokenOptions
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