Struct cdp::network::CookieParam
[−]
[src]
pub struct CookieParam<'a> { pub name: Cow<'a, str>, pub value: Cow<'a, str>, pub url: Option<Cow<'a, str>>, pub domain: Option<Cow<'a, str>>, pub path: Option<Cow<'a, str>>, pub secure: Option<bool>, pub http_only: Option<bool>, pub same_site: Option<CookieSameSite>, pub expires: Option<TimeSinceEpoch>, }
[Experimental] Cookie parameter object
Fields
name: Cow<'a, str>
Cookie name.
value: Cow<'a, str>
Cookie value.
url: Option<Cow<'a, str>>
The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie.
domain: Option<Cow<'a, str>>
Cookie domain.
path: Option<Cow<'a, str>>
Cookie path.
secure: Option<bool>
True if cookie is secure.
http_only: Option<bool>
True if cookie is http-only.
same_site: Option<CookieSameSite>
Cookie SameSite type.
expires: Option<TimeSinceEpoch>
Cookie expiration date, session cookie if not set
Trait Implementations
impl<'a> Clone for CookieParam<'a>
[src]
fn clone(&self) -> CookieParam<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for CookieParam<'a>
[src]
impl<'a> PartialEq for CookieParam<'a>
[src]
fn eq(&self, __arg_0: &CookieParam<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CookieParam<'a>) -> bool
[src]
This method tests for !=
.