Struct cookie::Cookie
[−]
[src]
pub struct Cookie { pub name: String, pub value: String, pub expires: Option<Tm>, pub max_age: Option<u64>, pub domain: Option<String>, pub path: Option<String>, pub secure: bool, pub httponly: bool, pub custom: BTreeMap<String, String>, }
Fields
name: String
value: String
expires: Option<Tm>
max_age: Option<u64>
domain: Option<String>
path: Option<String>
secure: bool
httponly: bool
custom: BTreeMap<String, String>
Methods
impl Cookie
[src]
fn new(name: String, value: String) -> Cookie
fn parse(s: &str) -> Result<Cookie, Error>
fn pair(&self) -> AttrVal
Trait Implementations
impl PartialEq for Cookie
[src]
fn eq(&self, __arg_0: &Cookie) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Cookie) -> bool
This method tests for !=
.
impl Clone for Cookie
[src]
fn clone(&self) -> Cookie
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more