pub struct TokenTimeConfig {
pub start_time: Option<i64>,
pub duration: i64,
}Expand description
TokenTimeConfig allows control over token creation times and durations This is used to create tokens with custom start times and durations for testing purposes. In the future, this can be enhanced to support variable length tokens, such as long-lived bearer tokens.
Fields§
§start_time: Option<i64>Optional custom start time (now time override)
duration: i64Duration in seconds (default: 300 seconds = 5 minutes)
Trait Implementations§
Source§impl Clone for TokenTimeConfig
impl Clone for TokenTimeConfig
Source§fn clone(&self) -> TokenTimeConfig
fn clone(&self) -> TokenTimeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenTimeConfig
impl Debug for TokenTimeConfig
Source§impl Default for TokenTimeConfig
impl Default for TokenTimeConfig
Source§fn default() -> TokenTimeConfig
fn default() -> TokenTimeConfig
Returns the “default value” for a type. Read more
impl Copy for TokenTimeConfig
Auto Trait Implementations§
impl Freeze for TokenTimeConfig
impl RefUnwindSafe for TokenTimeConfig
impl Send for TokenTimeConfig
impl Sync for TokenTimeConfig
impl Unpin for TokenTimeConfig
impl UnwindSafe for TokenTimeConfig
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