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 | |
value | |
expires | |
max_age | |
domain | |
path | |
secure | |
httponly | |
custom |
Methods
impl Cookie
[src]
fn new(name: String, value: String) -> Cookie
fn parse(s: &str) -> Result<Cookie, ()>
fn pair(&self) -> AttrVal
Trait Implementations
impl Display for Cookie
[src]
impl FromStr for Cookie
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Cookie, ()>
Parses a string s
to return a value of this type. Read more
Derived Implementations
impl Debug for Cookie
[src]
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