Struct sessions_core::Config [−][src]
pub struct Config<S: Storage> {
pub cookie: CookieOptions,
pub storage: S,
pub generate: Box<dyn Send + Sync + Fn() -> String + 'static>,
pub verify: Box<dyn Send + Sync + Fn(&str) -> bool + 'static>,
}
Expand description
Sessions Config
Fields
Cookie Options
storage: S
Current Storage
generate: Box<dyn Send + Sync + Fn() -> String + 'static>
Generates session id
verify: Box<dyn Send + Sync + Fn(&str) -> bool + 'static>
Verifes session id
Implementations
Trait Implementations
Get a data from storage by the key
Set a data to storage by the key
Remove a data from storage by the key
Reset the storage and remove all keys