pub struct LoadBalancersUpdateResponseLoadBalancerStickySessions {
pub cookie_name: Option<String>,
pub cookie_ttl_seconds: Option<i64>,
pub type_: LoadBalancersUpdateResponseLoadBalancerStickySessionsType,
}Expand description
An object specifying sticky sessions settings for the load balancer.
JSON schema
{
"description": "An object specifying sticky sessions settings for the load balancer.",
"type": "object",
"properties": {
"cookie_name": {
"description": "The name of the cookie sent to the client. This attribute is only returned when using `cookies` for the sticky sessions type.",
"examples": [
"DO-LB"
],
"type": "string"
},
"cookie_ttl_seconds": {
"description": "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.",
"examples": [
300
],
"type": "integer"
},
"type": {
"description": "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`.",
"default": "none",
"examples": [
"cookies"
],
"type": "string",
"enum": [
"cookies",
"none"
]
}
}
}Fields§
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.
type_: LoadBalancersUpdateResponseLoadBalancerStickySessionsTypeAn 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.
Trait Implementations§
Source§impl Clone for LoadBalancersUpdateResponseLoadBalancerStickySessions
impl Clone for LoadBalancersUpdateResponseLoadBalancerStickySessions
Source§fn clone(&self) -> LoadBalancersUpdateResponseLoadBalancerStickySessions
fn clone(&self) -> LoadBalancersUpdateResponseLoadBalancerStickySessions
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<'de> Deserialize<'de> for LoadBalancersUpdateResponseLoadBalancerStickySessions
impl<'de> Deserialize<'de> for LoadBalancersUpdateResponseLoadBalancerStickySessions
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 From<&LoadBalancersUpdateResponseLoadBalancerStickySessions> for LoadBalancersUpdateResponseLoadBalancerStickySessions
impl From<&LoadBalancersUpdateResponseLoadBalancerStickySessions> for LoadBalancersUpdateResponseLoadBalancerStickySessions
Source§fn from(value: &LoadBalancersUpdateResponseLoadBalancerStickySessions) -> Self
fn from(value: &LoadBalancersUpdateResponseLoadBalancerStickySessions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoadBalancersUpdateResponseLoadBalancerStickySessions
impl RefUnwindSafe for LoadBalancersUpdateResponseLoadBalancerStickySessions
impl Send for LoadBalancersUpdateResponseLoadBalancerStickySessions
impl Sync for LoadBalancersUpdateResponseLoadBalancerStickySessions
impl Unpin for LoadBalancersUpdateResponseLoadBalancerStickySessions
impl UnsafeUnpin for LoadBalancersUpdateResponseLoadBalancerStickySessions
impl UnwindSafe for LoadBalancersUpdateResponseLoadBalancerStickySessions
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