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.

§cookie_name: Option<String>

The name of the cookie sent to the client. This attribute is only returned when using “cookies” for the sticky sessions type.

§cookie_ttl_seconds: Option<String>

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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.