pub struct Cookie {Show 16 fields
pub name: String,
pub value: String,
pub domain: String,
pub path: String,
pub expires: f64,
pub size: u32,
pub http_only: bool,
pub secure: bool,
pub session: bool,
pub same_site: Option<CookieSameSite>,
pub priority: CookiePriority,
pub same_party: bool,
pub source_scheme: CookieSourceScheme,
pub source_port: u32,
pub partition_key: Option<CookiePartitionKey>,
pub partition_key_opaque: Option<bool>,
}Fields§
§name: String§value: String§domain: String§path: String§expires: f64§size: u32§http_only: bool§secure: bool§session: bool§same_site: Option<CookieSameSite>§priority: CookiePriority§same_party: bool§source_scheme: CookieSourceScheme§source_port: u32§partition_key: Option<CookiePartitionKey>§partition_key_opaque: Option<bool>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cookie
impl<'de> Deserialize<'de> for Cookie
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Cookie, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Cookie, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Cookie
impl Serialize for Cookie
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Cookie
Auto Trait Implementations§
impl Freeze for Cookie
impl RefUnwindSafe for Cookie
impl Send for Cookie
impl Sync for Cookie
impl Unpin for Cookie
impl UnwindSafe for Cookie
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