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]
impl Cookiepub fn new(name: String, value: String) -> Cookie[src]
pub fn new(name: String, value: String) -> Cookiepub fn parse(s: &str) -> Result<Cookie, ()>[src]
pub fn parse(s: &str) -> Result<Cookie, ()>pub fn pair(&self) -> AttrVal[src]
pub fn pair(&self) -> AttrValTrait Implementations
impl PartialEq for Cookie[src]
impl PartialEq for Cookiefn eq(&self, other: &Cookie) -> bool[src]
fn eq(&self, other: &Cookie) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Cookie) -> bool[src]
fn ne(&self, other: &Cookie) -> boolThis method tests for !=.
impl Clone for Cookie[src]
impl Clone for Cookiefn clone(&self) -> Cookie[src]
fn clone(&self) -> CookieReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Cookie[src]
impl Debug for Cookiefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Cookie[src]
impl Display for Cookiefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl FromStr for Cookie[src]
impl FromStr for Cookie