pub struct Props {
pub title: String,
pub description: Option<String>,
pub variant: Variant,
pub icon: bool,
}Expand description
Alert rendering properties
Fields§
§title: StringAlert title text
description: Option<String>Optional description text
variant: VariantVisual variant (color scheme)
icon: boolWhether to show the icon (default true)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Props
impl RefUnwindSafe for Props
impl Send for Props
impl Sync for Props
impl Unpin for Props
impl UnsafeUnpin for Props
impl UnwindSafe for Props
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