#[non_exhaustive]pub struct BackendServiceHttpCookie {
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 HTTP cookie used for stateful session affinity.
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 BackendServiceHttpCookie
impl BackendServiceHttpCookie
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
Trait Implementations§
Source§impl Clone for BackendServiceHttpCookie
impl Clone for BackendServiceHttpCookie
Source§fn clone(&self) -> BackendServiceHttpCookie
fn clone(&self) -> BackendServiceHttpCookie
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 Debug for BackendServiceHttpCookie
impl Debug for BackendServiceHttpCookie
Source§impl Default for BackendServiceHttpCookie
impl Default for BackendServiceHttpCookie
Source§fn default() -> BackendServiceHttpCookie
fn default() -> BackendServiceHttpCookie
Returns the “default value” for a type. Read more
Source§impl Message for BackendServiceHttpCookie
impl Message for BackendServiceHttpCookie
Source§impl PartialEq for BackendServiceHttpCookie
impl PartialEq for BackendServiceHttpCookie
impl StructuralPartialEq for BackendServiceHttpCookie
Auto Trait Implementations§
impl Freeze for BackendServiceHttpCookie
impl RefUnwindSafe for BackendServiceHttpCookie
impl Send for BackendServiceHttpCookie
impl Sync for BackendServiceHttpCookie
impl Unpin for BackendServiceHttpCookie
impl UnwindSafe for BackendServiceHttpCookie
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