#[non_exhaustive]pub struct ConsistentHashLoadBalancerSettingsHttpCookie {
pub name: Option<String>,
pub path: Option<String>,
pub ttl: Option<Duration>,
/* private fields */
}Available on crate features
backend-services or region-backend-services only.Expand description
The information about the HTTP Cookie on which the hash function is based for load balancing policies that use a consistent hash.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>Name of the cookie.
path: Option<String>Path to set for the cookie.
ttl: Option<Duration>Lifetime of the cookie.
Implementations§
Source§impl ConsistentHashLoadBalancerSettingsHttpCookie
impl ConsistentHashLoadBalancerSettingsHttpCookie
pub fn new() -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_path<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_path<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_ttl<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ttl<T>(self, v: Option<T>) -> Self
Sets or clears the value of ttl.
§Example
ⓘ
use google_cloud_compute_v1::model::Duration;
let x = ConsistentHashLoadBalancerSettingsHttpCookie::new().set_or_clear_ttl(Some(Duration::default()/* use setters */));
let x = ConsistentHashLoadBalancerSettingsHttpCookie::new().set_or_clear_ttl(None::<Duration>);Trait Implementations§
Source§impl Clone for ConsistentHashLoadBalancerSettingsHttpCookie
impl Clone for ConsistentHashLoadBalancerSettingsHttpCookie
Source§fn clone(&self) -> ConsistentHashLoadBalancerSettingsHttpCookie
fn clone(&self) -> ConsistentHashLoadBalancerSettingsHttpCookie
Returns a duplicate 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 ConsistentHashLoadBalancerSettingsHttpCookie
impl Default for ConsistentHashLoadBalancerSettingsHttpCookie
Source§fn default() -> ConsistentHashLoadBalancerSettingsHttpCookie
fn default() -> ConsistentHashLoadBalancerSettingsHttpCookie
Returns the “default value” for a type. Read more
Source§impl PartialEq for ConsistentHashLoadBalancerSettingsHttpCookie
impl PartialEq for ConsistentHashLoadBalancerSettingsHttpCookie
Source§fn eq(&self, other: &ConsistentHashLoadBalancerSettingsHttpCookie) -> bool
fn eq(&self, other: &ConsistentHashLoadBalancerSettingsHttpCookie) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConsistentHashLoadBalancerSettingsHttpCookie
Auto Trait Implementations§
impl Freeze for ConsistentHashLoadBalancerSettingsHttpCookie
impl RefUnwindSafe for ConsistentHashLoadBalancerSettingsHttpCookie
impl Send for ConsistentHashLoadBalancerSettingsHttpCookie
impl Sync for ConsistentHashLoadBalancerSettingsHttpCookie
impl Unpin for ConsistentHashLoadBalancerSettingsHttpCookie
impl UnwindSafe for ConsistentHashLoadBalancerSettingsHttpCookie
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