pub struct ToastStyleConfig {
pub severity: BannerSeverity,
pub priority: ToastPriority,
pub content: WidgetId,
pub leading_glyph: WidgetId,
pub trailing_close: Option<WidgetId>,
}Fields§
§severity: BannerSeveritySeverity hint — drives the recipe’s surface tint (same mapping
as BannerSeverity::surface()).
priority: ToastPriorityPriority hint — recipes can use this to differentiate Urgent toasts (e.g., heavier shadow). Most recipes ignore it.
content: WidgetIdPre-built body subtree (title + body + optional action row + optional progress bar). The recipe arranges it next to the leading glyph.
leading_glyph: WidgetIdPre-built SeverityGlyph (or app-supplied custom leading
widget). The recipe places it at the leading edge.
trailing_close: Option<WidgetId>Optional pre-built close IconButton. None when the toast
was constructed with .show_close_button(false).
Trait Implementations§
Source§impl Clone for ToastStyleConfig
impl Clone for ToastStyleConfig
Source§fn clone(&self) -> ToastStyleConfig
fn clone(&self) -> ToastStyleConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToastStyleConfig
impl RefUnwindSafe for ToastStyleConfig
impl Send for ToastStyleConfig
impl Sync for ToastStyleConfig
impl Unpin for ToastStyleConfig
impl UnsafeUnpin for ToastStyleConfig
impl UnwindSafe for ToastStyleConfig
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