pub struct CookieData {
pub name: String,
pub value: String,
pub domain: String,
pub path: String,
pub secure: bool,
pub http_only: bool,
}Expand description
A single browser cookie.
Fields§
§name: StringCookie name.
value: StringCookie value.
domain: StringCookie domain.
path: StringCookie path.
secure: boolWhether the cookie is secure-only.
http_only: boolWhether the cookie is HTTP-only.
Trait Implementations§
Source§impl Clone for CookieData
impl Clone for CookieData
Source§fn clone(&self) -> CookieData
fn clone(&self) -> CookieData
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 CookieData
impl Debug for CookieData
Source§impl<'de> Deserialize<'de> for CookieData
impl<'de> Deserialize<'de> for CookieData
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
Auto Trait Implementations§
impl Freeze for CookieData
impl RefUnwindSafe for CookieData
impl Send for CookieData
impl Sync for CookieData
impl Unpin for CookieData
impl UnsafeUnpin for CookieData
impl UnwindSafe for CookieData
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