pub struct ExpiresAfterParam {
pub anchor: String,
pub seconds: i32,
}Expand description
Controls when the session expires relative to an anchor timestamp.
Fields§
§anchor: StringBase timestamp used to calculate expiration. Currently fixed to created_at.
seconds: i32Number of seconds after the anchor when the session expires.
Trait Implementations§
Source§impl Clone for ExpiresAfterParam
impl Clone for ExpiresAfterParam
Source§fn clone(&self) -> ExpiresAfterParam
fn clone(&self) -> ExpiresAfterParam
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 ExpiresAfterParam
impl Debug for ExpiresAfterParam
Source§impl Default for ExpiresAfterParam
impl Default for ExpiresAfterParam
Source§fn default() -> ExpiresAfterParam
fn default() -> ExpiresAfterParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExpiresAfterParam
impl<'de> Deserialize<'de> for ExpiresAfterParam
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExpiresAfterParam
impl PartialEq for ExpiresAfterParam
Source§impl Serialize for ExpiresAfterParam
impl Serialize for ExpiresAfterParam
impl StructuralPartialEq for ExpiresAfterParam
Auto Trait Implementations§
impl Freeze for ExpiresAfterParam
impl RefUnwindSafe for ExpiresAfterParam
impl Send for ExpiresAfterParam
impl Sync for ExpiresAfterParam
impl Unpin for ExpiresAfterParam
impl UnwindSafe for ExpiresAfterParam
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