pub struct Config { /* private fields */ }Expand description
Configuration for axum-flash.
Implementations§
Source§impl Config
impl Config
Sourcepub fn new(key: Key) -> Self
pub fn new(key: Key) -> Self
Create a new Config using the given key.
Cookies will be signed using key.
Mark the cookie as secure so the cookie will only be sent on https.
Defaults to marking cookies as secure.
For local development, depending on your brwoser, you might have to set
this to false for flash messages to show up.
See mdn for more details on secure cookies.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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