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<u64>,
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<u64>§partitioned: Option<bool>Implementations§
Source§impl CookieAttributesOverride
impl CookieAttributesOverride
pub fn new() -> CookieAttributesOverride
pub fn builder() -> CookieAttributesOverride
pub fn domain(self, domain: impl Into<String>) -> CookieAttributesOverride
pub fn path(self, path: impl Into<String>) -> CookieAttributesOverride
pub fn secure(self, secure: bool) -> CookieAttributesOverride
pub fn http_only(self, http_only: bool) -> CookieAttributesOverride
pub fn same_site(self, same_site: impl Into<String>) -> CookieAttributesOverride
pub fn max_age(self, max_age: u64) -> CookieAttributesOverride
pub fn partitioned(self, partitioned: bool) -> CookieAttributesOverride
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
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
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.