[][src]Struct selenium_webdriver::Cookie

pub struct Cookie { /* fields omitted */ }

Utility struct to manage session cookies

Includes two constructor methods and getters/setters for adjustments

Implementations

impl Cookie[src]

pub fn new_all(
    domain: String,
    expiry: u64,
    same_site: String,
    http_only: bool,
    name: String,
    path: String,
    secure: bool,
    value: String
) -> Self
[src]

Create a cookie and initialize all its fields

pub fn new(name: String, value: String) -> Self[src]

Create default cookie and set only name and value

pub fn get_domain(&self) -> String[src]

pub fn get_expiry(&self) -> u64[src]

pub fn get_http_only(&self) -> bool[src]

pub fn get_name(&self) -> String[src]

pub fn get_path(&self) -> String[src]

pub fn get_secure(&self) -> bool[src]

pub fn get_value(&self) -> String[src]

pub fn get_same_site(&self) -> String[src]

pub fn set_domain(&mut self, domain: String)[src]

pub fn set_expiry(&mut self, expiry: u64)[src]

pub fn set_http_only(&mut self, http_only: bool)[src]

pub fn set_path(&mut self, path: String)[src]

pub fn set_secure(&mut self, secure: bool)[src]

pub fn set_same_site(&mut self, same_site: String)[src]

Trait Implementations

impl Clone for Cookie[src]

impl Debug for Cookie[src]

impl Default for Cookie[src]

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

impl Serialize for Cookie[src]

Auto Trait Implementations

impl RefUnwindSafe for Cookie

impl Send for Cookie

impl Sync for Cookie

impl Unpin for Cookie

impl UnwindSafe for Cookie

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> 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.