pub trait Cookieable {
// Required method
fn options(&self) -> &CookieOptions;
// Provided methods
fn get_cookie<'a>(&'a self, cookies: &'a Cookies) -> Option<Cookie<'a>> { ... }
fn remove_cookie<'a>(&'a self, cookies: &'a Cookies) { ... }
fn set_cookie<'a>(&'a self, cookies: &'a Cookies, value: impl Into<String>) { ... }
}Available on crate features
cookie and cookie-private only.Expand description
An interface for managing the private cookies.
Required Methods§
Sourcefn options(&self) -> &CookieOptions
fn options(&self) -> &CookieOptions
Gets the options of the cookie.
Provided Methods§
Gets a cookie from the cookies.
Deletes a cookie from the cookies.
Sets a cookie from the cookies.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<S, G, V> Cookieable for viz_core::middleware::csrf::Config<S, G, V>
Available on crate feature
csrf only.impl<S, G, V> Cookieable for viz_core::middleware::session::Config<S, G, V>
Available on crate feature
session only.