Struct chromiumoxide::cdp::browser_protocol::network::CookieParam
source · pub struct CookieParam {Show 14 fields
pub name: String,
pub value: String,
pub url: Option<String>,
pub domain: Option<String>,
pub path: Option<String>,
pub secure: Option<bool>,
pub http_only: Option<bool>,
pub same_site: Option<CookieSameSite>,
pub expires: Option<TimeSinceEpoch>,
pub priority: Option<CookiePriority>,
pub same_party: Option<bool>,
pub source_scheme: Option<CookieSourceScheme>,
pub source_port: Option<i64>,
pub partition_key: Option<String>,
}
Expand description
Cookie parameter object CookieParam
Fields§
§name: String
Cookie name.
value: String
Cookie value.
url: Option<String>
The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.
domain: Option<String>
Cookie domain.
path: Option<String>
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
priority: Option<CookiePriority>
Cookie Priority.
same_party: Option<bool>
True if cookie is SameParty.
source_scheme: Option<CookieSourceScheme>
Cookie source scheme type.
source_port: Option<i64>
Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
partition_key: Option<String>
Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. If not set, the cookie will be set as not partitioned.
Implementations§
source§impl CookieParam
impl CookieParam
source§impl CookieParam
impl CookieParam
pub fn builder() -> CookieParamBuilder
source§impl CookieParam
impl CookieParam
pub const IDENTIFIER: &'static str = "Network.CookieParam"
Trait Implementations§
source§impl Clone for CookieParam
impl Clone for CookieParam
source§fn clone(&self) -> CookieParam
fn clone(&self) -> CookieParam
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CookieParam
impl Debug for CookieParam
source§impl<'de> Deserialize<'de> for CookieParam
impl<'de> Deserialize<'de> for CookieParam
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<CookieParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<CookieParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for CookieParam
impl PartialEq for CookieParam
source§fn eq(&self, other: &CookieParam) -> bool
fn eq(&self, other: &CookieParam) -> bool
self
and other
values to be equal, and is used
by ==
.