pub struct SetCookie {
pub name: String,
pub value: String,
pub path: Option<String>,
pub domain: Option<String>,
pub max_age: Option<i64>,
pub secure: bool,
pub http_only: bool,
pub same_site: Option<String>,
}Expand description
A lightweight view of a Set-Cookie header.
Fields§
§name: String§value: String§path: Option<String>§domain: Option<String>§max_age: Option<i64>§secure: bool§http_only: bool§same_site: Option<String>Trait Implementations§
impl Eq for SetCookie
impl StructuralPartialEq for SetCookie
Auto Trait Implementations§
impl Freeze for SetCookie
impl RefUnwindSafe for SetCookie
impl Send for SetCookie
impl Sync for SetCookie
impl Unpin for SetCookie
impl UnsafeUnpin for SetCookie
impl UnwindSafe for SetCookie
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