Struct digitalocean::api::load_balancer_fields::StickySessions
source · pub struct StickySessions {
pub kind: String,
pub cookie_name: Option<String>,
pub cookie_ttl_seconds: Option<String>,
}
Expand description
This exists in the sticky_sessions
field of a droplet.
When sticky sessions are in use, follow up requests from a client will be sent to the same Droplet as the original request. Both the name of the cookie and the TTL are configurable.
Fields§
§kind: String
An attribute indicating how and if requests from a client will be persistently served by the same backend Droplet. The possible values are “cookies” or “none”.
Note: Since type
is a keyword in Rust kind
is used instead.
The name of the cookie sent to the client. This attribute is only returned when using “cookies” for the sticky sessions type.
The number of seconds until the cookie set by the Load Balancer expires. This attribute is only returned when using “cookies” for the sticky sessions type.
Trait Implementations§
source§impl Clone for StickySessions
impl Clone for StickySessions
source§fn clone(&self) -> StickySessions
fn clone(&self) -> StickySessions
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 Debug for StickySessions
impl Debug for StickySessions
source§impl<'de> Deserialize<'de> for StickySessions
impl<'de> Deserialize<'de> for StickySessions
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