pub struct CookieConfig {
pub name: String,
pub max_age: Duration,
pub secure: bool,
pub http_only: bool,
pub domain: Option<String>,
pub same_site: SameSite,
}Expand description
Describes cookie parameters for either access or refresh tokens.
Constructed internally by
ActixJwtMiddleware::access_cookie_config /
ActixJwtMiddleware::refresh_cookie_config.
Fields§
§name: StringCookie name.
max_age: DurationMax-Age value.
secure: boolSecure flag.
http_only: boolHttpOnly flag.
domain: Option<String>Optional Domain attribute.
same_site: SameSiteSameSite attribute.
Auto Trait Implementations§
impl Freeze for CookieConfig
impl RefUnwindSafe for CookieConfig
impl Send for CookieConfig
impl Sync for CookieConfig
impl Unpin for CookieConfig
impl UnsafeUnpin for CookieConfig
impl UnwindSafe for CookieConfig
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