pub struct Cookie<'cookie, KeyState, ValueState> { /* private fields */ }
Implementations§
pub fn new() -> Self
pub fn key( self, key: &'cookie str, ) -> Cookie<'cookie, KeyPresent, ValueNotPresent>
pub fn value( self, value: &'cookie str, ) -> Cookie<'cookie, KeyPresent, ValuePresent>
pub fn http_only(self, http_only: bool) -> Self
pub fn same_site(self, same_site: SameSite) -> Self
pub fn secure(self, secure: bool) -> Self
pub fn path(self, path: &'cookie str) -> Self
pub fn max_age(self, max_age: u64) -> Self
pub fn properties(self, properties: Properties) -> Self
pub fn build(self) -> String
Auto Trait Implementations§
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