Struct chromiumoxide::cdp::browser_protocol::network::SetCookieParams[][src]

pub struct SetCookieParams {
    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>,
}

Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. setCookie

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 and path 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 type.

Implementations

impl SetCookieParams[src]

pub fn new(name: impl Into<String>, value: impl Into<String>) -> SetCookieParams[src]

impl SetCookieParams[src]

impl SetCookieParams[src]

pub const IDENTIFIER: &'static str[src]

Trait Implementations

impl Clone for SetCookieParams[src]

impl Command for SetCookieParams[src]

type Response = SetCookieReturns

The type of the response this request triggers on the chromium server

impl Debug for SetCookieParams[src]

impl<'de> Deserialize<'de> for SetCookieParams[src]

impl Method for SetCookieParams[src]

impl MethodType for SetCookieParams[src]

impl PartialEq<SetCookieParams> for SetCookieParams[src]

impl Serialize for SetCookieParams[src]

impl StructuralPartialEq for SetCookieParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,