pub struct Cookie { /* private fields */ }Implementations§
Source§impl Cookie
impl Cookie
pub fn new(name: impl Into<String>, value: impl Into<String>) -> Cookie
pub fn name(&self) -> &str
pub fn value(&self) -> &str
pub fn path(self, path: impl Into<String>) -> Cookie
pub fn domain(self, domain: impl Into<String>) -> Cookie
pub fn max_age(self, seconds: i64) -> Cookie
pub fn same_site(self, same_site: SameSite) -> Cookie
pub fn http_only(self, enabled: bool) -> Cookie
pub fn secure(self, enabled: bool) -> Cookie
Trait Implementations§
impl Eq for Cookie
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 UnsafeUnpin 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