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

fn new(name: String, value: String) -> Cookie

fn parse(s: &str) -> Result<Cookie, ()>

fn pair(&self) -> AttrVal

Trait Implementations

impl String for Cookie

fn fmt(&self, f: &mut Formatter) -> Result

impl FromStr for Cookie

fn from_str(s: &str) -> Option<Cookie>

Derived Implementations

impl Show for Cookie

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Cookie

fn clone(&self) -> Cookie

fn clone_from(&mut self, source: &Self)

impl PartialEq for Cookie

fn eq(&self, __arg_0: &Cookie) -> bool

fn ne(&self, __arg_0: &Cookie) -> bool