Struct thruster::middleware::cookies::CookieOptions
source · [−]pub struct CookieOptions {
pub domain: String,
pub path: String,
pub expires: u64,
pub http_only: bool,
pub max_age: u64,
pub secure: bool,
pub signed: bool,
pub same_site: Option<SameSite>,
}
Fields
domain: String
path: String
expires: u64
http_only: bool
max_age: u64
secure: bool
signed: bool
same_site: Option<SameSite>
Implementations
sourceimpl CookieOptions
impl CookieOptions
pub fn default() -> CookieOptions
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CookieOptions
impl Send for CookieOptions
impl Sync for CookieOptions
impl Unpin for CookieOptions
impl UnwindSafe for CookieOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more