pub struct SessionContextConfig {
pub cookie_name: String,
pub session_context_key: String,
pub cookie_path: String,
pub http_only: bool,
pub secure: bool,
pub same_site: SessionCookieSameSite,
pub ttl: Option<Duration>,
pub post_auth_redirect: RedirectTargetConfig,
}Fields§
§session_context_key: String§http_only: bool§secure: bool§same_site: SessionCookieSameSite§ttl: Option<Duration>§post_auth_redirect: RedirectTargetConfigImplementations§
Source§impl SessionContextConfig
impl SessionContextConfig
Sourcepub fn builder() -> SessionContextConfigBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> SessionContextConfigBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building SessionContextConfig.
On the builder, call .cookie_name(...)(optional), .session_context_key(...)(optional), .cookie_path(...)(optional), .http_only(...)(optional), .secure(...)(optional), .same_site(...)(optional), .ttl(...)(optional), .post_auth_redirect(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of SessionContextConfig.
Source§impl SessionContextConfig
impl SessionContextConfig
pub fn resolve_post_auth_redirect( &self, requested_post_auth_redirect: Option<&str>, ) -> SessionContextResult<String>
Trait Implementations§
Source§impl Clone for SessionContextConfig
impl Clone for SessionContextConfig
Source§fn clone(&self) -> SessionContextConfig
fn clone(&self) -> SessionContextConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionContextConfig
impl Debug for SessionContextConfig
Source§impl Default for SessionContextConfig
impl Default for SessionContextConfig
Source§impl<'de> Deserialize<'de> for SessionContextConfig
impl<'de> Deserialize<'de> for SessionContextConfig
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 SessionContextConfig
impl RefUnwindSafe for SessionContextConfig
impl Send for SessionContextConfig
impl Sync for SessionContextConfig
impl Unpin for SessionContextConfig
impl UnsafeUnpin for SessionContextConfig
impl UnwindSafe for SessionContextConfig
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