pub struct Cookie { /* private fields */ }Expand description
A cookie
Implementations§
Source§impl Cookie
impl Cookie
Sourcepub fn new(
name: String,
value: String,
attributes: Option<Vec<CookieAttributes>>,
) -> Cookie
pub fn new( name: String, value: String, attributes: Option<Vec<CookieAttributes>>, ) -> Cookie
create a new cookie
§Arguments
name: the name of the cookievalue: the value of the cookieattributes: the cookie attributes (seeCookieAttributesfor a list of attributes)
Sourcepub fn from_string(string: String) -> Option<Cookie>
pub fn from_string(string: String) -> Option<Cookie>
create a cookie from a string
will return None if string has invalid format
Trait Implementations§
impl StructuralPartialEq for Cookie
Auto Trait Implementations§
impl Freeze for Cookie
impl RefUnwindSafe for Cookie
impl Send for Cookie
impl Sync for Cookie
impl Unpin for Cookie
impl UnwindSafe for Cookie
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more