pub struct CookieRes { /* private fields */ }Implementations§
Source§impl CookieRes
impl CookieRes
pub fn new(name: String, value: String) -> Self
pub fn set_domain(&mut self, domain: String)
pub fn set_path(&mut self, path: String)
pub fn set_expires(&mut self, expires: SystemTime)
pub fn set_max_age(&mut self, max_age: u64)
pub fn set_secure(&mut self, secure: bool)
pub fn set_http_only(&mut self, http_only: bool)
pub fn set_same_site(&mut self, same_site: SameSite)
pub fn to_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CookieRes
impl RefUnwindSafe for CookieRes
impl Send for CookieRes
impl Sync for CookieRes
impl Unpin for CookieRes
impl UnwindSafe for CookieRes
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