pub struct ToastContent {
pub message: String,
pub icon: Option<ToastIcon>,
pub title: Option<String>,
}Expand description
Content of a toast notification.
Fields§
§message: StringMain message text.
icon: Option<ToastIcon>Optional icon.
title: Option<String>Optional title.
Implementations§
Trait Implementations§
Source§impl Clone for ToastContent
impl Clone for ToastContent
Source§fn clone(&self) -> ToastContent
fn clone(&self) -> ToastContent
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 moreAuto Trait Implementations§
impl Freeze for ToastContent
impl RefUnwindSafe for ToastContent
impl Send for ToastContent
impl Sync for ToastContent
impl Unpin for ToastContent
impl UnwindSafe for ToastContent
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