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§

source

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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<S, G, V> Cookieable for viz_core::middleware::csrf::Config<S, G, V>

Available on crate feature csrf only.
source§

impl<S, G, V> Cookieable for viz_core::middleware::session::Config<S, G, V>

Available on crate feature session only.