pub struct FlashEntry {
pub level: String,
pub message: String,
}Expand description
A single flash message carrying a severity level and a text body.
Serializes to/from JSON for cookie storage.
Fields§
§level: StringSeverity level such as "success", "error", "warning", or "info".
message: StringHuman-readable message text.
Trait Implementations§
Source§impl Clone for FlashEntry
impl Clone for FlashEntry
Source§fn clone(&self) -> FlashEntry
fn clone(&self) -> FlashEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlashEntry
impl Debug for FlashEntry
Source§impl<'de> Deserialize<'de> for FlashEntry
impl<'de> Deserialize<'de> for FlashEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FlashEntry
impl PartialEq for FlashEntry
Source§impl Serialize for FlashEntry
impl Serialize for FlashEntry
impl StructuralPartialEq for FlashEntry
Auto Trait Implementations§
impl Freeze for FlashEntry
impl RefUnwindSafe for FlashEntry
impl Send for FlashEntry
impl Sync for FlashEntry
impl Unpin for FlashEntry
impl UnsafeUnpin for FlashEntry
impl UnwindSafe for FlashEntry
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