Struct secure_session::middleware::SessionConfigBuilder
[−]
[src]
pub struct SessionConfigBuilder { /* fields omitted */ }A utility to help build a SessionConfig in an API backwards compatible way.
Methods
impl SessionConfigBuilder[src]
fn new() -> Self[src]
Create a new builder that is initialized with the default configuration.
fn ttl_seconds(self, ttl_seconds: Option<i64>) -> Self[src]
Set the session time to live (TTL) in seconds. Default: None
fn finish(self) -> Result<SessionConfig, SessionConfigError>[src]
Consume the builder and return a config.
Trait Implementations
impl Clone for SessionConfigBuilder[src]
fn clone(&self) -> SessionConfigBuilder[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more