pub struct CookieAttributesOverride {
pub domain: Option<String>,
pub path: Option<String>,
pub secure: Option<bool>,
pub http_only: Option<bool>,
pub same_site: Option<String>,
pub max_age: Option<Duration>,
pub partitioned: Option<bool>,
}Expand description
User-supplied cookie attribute defaults.
Fields§
§domain: Option<String>§path: Option<String>§secure: Option<bool>§http_only: Option<bool>§same_site: Option<String>§max_age: Option<Duration>§partitioned: Option<bool>Implementations§
Source§impl CookieAttributesOverride
impl CookieAttributesOverride
pub fn new() -> Self
pub fn builder() -> Self
pub fn domain(self, domain: impl Into<String>) -> Self
pub fn path(self, path: impl Into<String>) -> Self
pub fn secure(self, secure: bool) -> Self
pub fn http_only(self, http_only: bool) -> Self
pub fn same_site(self, same_site: impl Into<String>) -> Self
pub fn max_age(self, max_age: Duration) -> Self
pub fn partitioned(self, partitioned: bool) -> Self
Trait Implementations§
Source§impl Clone for CookieAttributesOverride
impl Clone for CookieAttributesOverride
Source§fn clone(&self) -> CookieAttributesOverride
fn clone(&self) -> CookieAttributesOverride
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 Debug for CookieAttributesOverride
impl Debug for CookieAttributesOverride
Source§impl Default for CookieAttributesOverride
impl Default for CookieAttributesOverride
Source§fn default() -> CookieAttributesOverride
fn default() -> CookieAttributesOverride
Returns the “default value” for a type. Read more
impl Eq for CookieAttributesOverride
Source§impl PartialEq for CookieAttributesOverride
impl PartialEq for CookieAttributesOverride
Source§fn eq(&self, other: &CookieAttributesOverride) -> bool
fn eq(&self, other: &CookieAttributesOverride) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CookieAttributesOverride
Auto Trait Implementations§
impl Freeze for CookieAttributesOverride
impl RefUnwindSafe for CookieAttributesOverride
impl Send for CookieAttributesOverride
impl Sync for CookieAttributesOverride
impl Unpin for CookieAttributesOverride
impl UnsafeUnpin for CookieAttributesOverride
impl UnwindSafe for CookieAttributesOverride
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.