pub struct Cookie(/* private fields */);
Implementations§
Source§impl Cookie
impl Cookie
pub fn new(name: &str, value: &str) -> Self
pub fn creation_time(&self) -> SystemTime
pub fn expires(&self) -> Option<SystemTime>
pub fn domain(&self) -> Cow<'_, str>
pub fn is_http_only(&self) -> bool
pub fn name(&self) -> Cow<'_, str>
pub fn path(&self) -> Cow<'_, str>
pub fn is_secure(&self) -> bool
pub fn value(&self) -> Cow<'_, str>
pub fn make_http_only(&mut self) -> &mut Self
pub fn make_secure(&mut self) -> &mut Self
pub fn set_creation_time(&mut self, time: &SystemTime) -> &mut Self
pub fn set_expires(&mut self, time: &SystemTime) -> &mut Self
pub fn set_domain(&mut self, domain: &str) -> &mut Self
pub fn set_name(&mut self, name: &str) -> &mut Self
pub fn set_path(&mut self, path: &str) -> &mut Self
pub fn set_value(&mut self, value: &str) -> &mut Self
Trait Implementations§
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