pub struct ToastConfig {
pub position: ToastPosition,
pub duration: Option<Duration>,
pub style_variant: ToastStyle,
pub max_width: u16,
pub margin: u16,
pub dismissable: bool,
pub animation: ToastAnimationConfig,
}Expand description
Configuration for a toast notification.
Fields§
§position: ToastPositionPosition on screen.
duration: Option<Duration>Auto-dismiss duration. None means persistent until dismissed.
style_variant: ToastStyleVisual style variant.
max_width: u16Maximum width in columns.
margin: u16Margin from screen edges.
dismissable: boolWhether the toast can be dismissed by the user.
animation: ToastAnimationConfigAnimation configuration.
Trait Implementations§
Source§impl Clone for ToastConfig
impl Clone for ToastConfig
Source§fn clone(&self) -> ToastConfig
fn clone(&self) -> ToastConfig
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 ToastConfig
impl Debug for ToastConfig
Auto Trait Implementations§
impl Freeze for ToastConfig
impl RefUnwindSafe for ToastConfig
impl Send for ToastConfig
impl Sync for ToastConfig
impl Unpin for ToastConfig
impl UnsafeUnpin for ToastConfig
impl UnwindSafe for ToastConfig
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