pub struct SessionTracking {
pub method: SessionTrackingMethod,
pub cookie_name: String,
pub header_name: String,
pub query_param: String,
pub auto_create: bool,
}Expand description
Session tracking configuration
Fields§
§method: SessionTrackingMethodTracking method
Cookie name (if method is Cookie)
header_name: StringHeader name (if method is Header)
query_param: StringQuery parameter name (if method is QueryParam)
auto_create: boolAutomatically create sessions if not present
Trait Implementations§
Source§impl Clone for SessionTracking
impl Clone for SessionTracking
Source§fn clone(&self) -> SessionTracking
fn clone(&self) -> SessionTracking
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 SessionTracking
impl Debug for SessionTracking
Source§impl Default for SessionTracking
impl Default for SessionTracking
Source§impl<'de> Deserialize<'de> for SessionTracking
impl<'de> Deserialize<'de> for SessionTracking
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
Auto Trait Implementations§
impl Freeze for SessionTracking
impl RefUnwindSafe for SessionTracking
impl Send for SessionTracking
impl Sync for SessionTracking
impl Unpin for SessionTracking
impl UnsafeUnpin for SessionTracking
impl UnwindSafe for SessionTracking
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