Struct hyper::header::CookiePair [−][src]
pub struct CookiePair { 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 Cookie
pub fn new(name: String, value: String) -> Cookie
[src]
pub fn new(name: String, value: String) -> Cookie
pub fn parse(s: &str) -> Result<Cookie, ()>
[src]
pub fn parse(s: &str) -> Result<Cookie, ()>
pub fn pair(&self) -> AttrVal
[src]
pub fn pair(&self) -> AttrVal
Trait Implementations
impl FromStr for Cookie
[src]
impl FromStr for Cookie
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Cookie, ()>
[src]
fn from_str(s: &str) -> Result<Cookie, ()>
Parses a string s
to return a value of this type. Read more
impl Display for Cookie
[src]
impl Display for Cookie
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl PartialEq<Cookie> for Cookie
[src]
impl PartialEq<Cookie> for Cookie
fn eq(&self, other: &Cookie) -> bool
[src]
fn eq(&self, other: &Cookie) -> bool
This 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) -> bool
This method tests for !=
.
impl Clone for Cookie
[src]
impl Clone for Cookie
fn clone(&self) -> Cookie
[src]
fn clone(&self) -> Cookie
Returns 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 Cookie