pub struct Cookie<'a> { /* private fields */ }Expand description
Cookie object
Implementations§
Source§impl<'a> Cookie<'a>
impl<'a> Cookie<'a>
pub fn builder( name: impl Into<Cow<'a, str>>, value: impl Into<Cow<'a, str>>, domain: impl Into<Cow<'a, str>>, path: impl Into<Cow<'a, str>>, expires: f64, size: u64, httpOnly: bool, secure: bool, session: bool, priority: CookiePriority, sourceScheme: CookieSourceScheme, sourcePort: i64, ) -> CookieBuilder<'a>
pub fn name(&self) -> &str
pub fn value(&self) -> &str
pub fn domain(&self) -> &str
pub fn path(&self) -> &str
pub fn expires(&self) -> f64
pub fn size(&self) -> u64
pub fn httpOnly(&self) -> bool
pub fn secure(&self) -> bool
pub fn session(&self) -> bool
pub fn sameSite(&self) -> Option<&CookieSameSite>
pub fn priority(&self) -> &CookiePriority
pub fn sourceScheme(&self) -> &CookieSourceScheme
pub fn sourcePort(&self) -> i64
pub fn partitionKey(&self) -> Option<&CookiePartitionKey<'a>>
pub fn partitionKeyOpaque(&self) -> Option<bool>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Cookie<'a>
impl<'de, 'a> Deserialize<'de> for Cookie<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for Cookie<'a>
impl<'a> RefUnwindSafe for Cookie<'a>
impl<'a> Send for Cookie<'a>
impl<'a> Sync for Cookie<'a>
impl<'a> Unpin for Cookie<'a>
impl<'a> UnsafeUnpin for Cookie<'a>
impl<'a> UnwindSafe for Cookie<'a>
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