pub struct CookieParam {Show 14 fields
pub name: String,
pub value: String,
pub url: Option<String>,
pub domain: Option<String>,
pub path: Option<String>,
pub secure: Option<bool>,
pub http_only: Option<bool>,
pub same_site: Option<CookieSameSite>,
pub expires: Option<f64>,
pub priority: Option<CookiePriority>,
pub same_party: Option<bool>,
pub source_scheme: Option<CookieSourceScheme>,
pub source_port: Option<i32>,
pub partition_key: Option<String>,
}Expand description
Cookie parameter for setting cookies.
Fields§
§name: StringCookie name.
value: StringCookie value.
url: Option<String>The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values.
domain: Option<String>Cookie domain.
path: Option<String>Cookie path.
secure: Option<bool>True if cookie is secure.
http_only: Option<bool>True if cookie is http-only.
same_site: Option<CookieSameSite>Cookie SameSite type.
expires: Option<f64>Cookie expiration date, session cookie if not set.
priority: Option<CookiePriority>Cookie Priority.
same_party: Option<bool>True if cookie is same-party.
source_scheme: Option<CookieSourceScheme>Cookie source scheme type.
source_port: Option<i32>Cookie source port.
partition_key: Option<String>Cookie partition key.
Implementations§
Trait Implementations§
Source§impl Clone for CookieParam
impl Clone for CookieParam
Source§fn clone(&self) -> CookieParam
fn clone(&self) -> CookieParam
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CookieParam
impl Debug for CookieParam
Source§impl Default for CookieParam
impl Default for CookieParam
Source§fn default() -> CookieParam
fn default() -> CookieParam
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CookieParam
impl RefUnwindSafe for CookieParam
impl Send for CookieParam
impl Sync for CookieParam
impl Unpin for CookieParam
impl UnwindSafe for CookieParam
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