pub struct HTTPRouteRulesSessionPersistenceCookieConfig {
pub lifetime_type: Option<HTTPRouteRulesSessionPersistenceCookieConfigLifetimeType>,
}
Expand description
CookieConfig provides configuration settings that are specific to cookie-based session persistence.
Support: Core
Fields§
§lifetime_type: Option<HTTPRouteRulesSessionPersistenceCookieConfigLifetimeType>
LifetimeType specifies whether the cookie has a permanent or session-based lifetime. A permanent cookie persists until its specified expiry time, defined by the Expires or Max-Age cookie attributes, while a session cookie is deleted when the current session ends.
When set to “Permanent”, AbsoluteTimeout indicates the cookie’s lifetime via the Expires or Max-Age cookie attributes and is required.
When set to “Session”, AbsoluteTimeout indicates the absolute lifetime of the cookie tracked by the gateway and is optional.
Support: Core for “Session” type
Support: Extended for “Permanent” type
Trait Implementations§
source§impl Clone for HTTPRouteRulesSessionPersistenceCookieConfig
impl Clone for HTTPRouteRulesSessionPersistenceCookieConfig
source§fn clone(&self) -> HTTPRouteRulesSessionPersistenceCookieConfig
fn clone(&self) -> HTTPRouteRulesSessionPersistenceCookieConfig
Returns a copy 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 Default for HTTPRouteRulesSessionPersistenceCookieConfig
impl Default for HTTPRouteRulesSessionPersistenceCookieConfig
source§fn default() -> HTTPRouteRulesSessionPersistenceCookieConfig
fn default() -> HTTPRouteRulesSessionPersistenceCookieConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HTTPRouteRulesSessionPersistenceCookieConfig
impl<'de> Deserialize<'de> for HTTPRouteRulesSessionPersistenceCookieConfig
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 JsonSchema for HTTPRouteRulesSessionPersistenceCookieConfig
impl JsonSchema for HTTPRouteRulesSessionPersistenceCookieConfig
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for HTTPRouteRulesSessionPersistenceCookieConfig
impl PartialEq for HTTPRouteRulesSessionPersistenceCookieConfig
source§fn eq(&self, other: &HTTPRouteRulesSessionPersistenceCookieConfig) -> bool
fn eq(&self, other: &HTTPRouteRulesSessionPersistenceCookieConfig) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for HTTPRouteRulesSessionPersistenceCookieConfig
Auto Trait Implementations§
impl Freeze for HTTPRouteRulesSessionPersistenceCookieConfig
impl RefUnwindSafe for HTTPRouteRulesSessionPersistenceCookieConfig
impl Send for HTTPRouteRulesSessionPersistenceCookieConfig
impl Sync for HTTPRouteRulesSessionPersistenceCookieConfig
impl Unpin for HTTPRouteRulesSessionPersistenceCookieConfig
impl UnwindSafe for HTTPRouteRulesSessionPersistenceCookieConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)