[−][src]Struct selenium_webdriver::Cookie
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]
domain: String,
expiry: u64,
same_site: String,
http_only: bool,
name: String,
path: String,
secure: bool,
value: String
) -> Self
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,