Struct cdp::network::SetCookieCommand [] [src]

pub struct SetCookieCommand<'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] Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.

Command Network.setCookie

Domain Module: cdp::network
Command Struct: cdp::network::SetCookieCommand
Response Struct: cdp::network::SetCookieResponse

Fields

Cookie name.

Cookie value.

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.

Cookie domain.

Cookie path.

True if cookie is secure.

True if cookie is http-only.

Cookie SameSite type.

Cookie expiration date, session cookie if not set

Trait Implementations

impl<'a> Clone for SetCookieCommand<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for SetCookieCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for SetCookieCommand<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for SetCookieCommand<'a>
[src]

COMMAND_NAME: &'static str = "Network.setCookie"

impl<'a> SerializeCdpCommand for SetCookieCommand<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpCommand<'de> for SetCookieCommand<'a>
[src]

[src]

impl<'b, 'a> HasCdpResponse<'b> for SetCookieCommand<'a>
[src]