pub struct Cookie {
pub name: String,
pub value: String,
pub domain: String,
pub path: String,
pub secure: bool,
pub http_only: bool,
pub expires: Option<f64>,
pub same_site: Option<SameSite>,
pub url: Option<String>,
}Expand description
One cookie as a host jar stores it. The field set is Playwright’s
Cookie / SetNetworkCookieParam, which is what a browser-backed
jar speaks natively and a superset of what any other jar needs.
Fields§
§name: String§value: String§domain: String§path: String§secure: bool§http_only: bool§expires: Option<f64>Unix time in seconds; -1 or None for a session cookie.
same_site: Option<SameSite>§url: Option<String>A URL to derive domain / path from when the jar supports it
(Playwright’s SetNetworkCookieParam.url). Never populated on a
cookie read back from a jar.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cookie
impl<'de> Deserialize<'de> for Cookie
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
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 UnsafeUnpin 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