pub struct ToastVariantPalette {
pub default: ToastVariantColors,
pub destructive: ToastVariantColors,
pub success: ToastVariantColors,
pub info: ToastVariantColors,
pub warning: ToastVariantColors,
pub error: ToastVariantColors,
pub loading: ToastVariantColors,
}Fields§
§default: ToastVariantColors§destructive: ToastVariantColors§success: ToastVariantColors§info: ToastVariantColors§warning: ToastVariantColors§error: ToastVariantColors§loading: ToastVariantColorsImplementations§
Source§impl ToastVariantPalette
impl ToastVariantPalette
pub fn for_variant(&self, variant: ToastVariant) -> &ToastVariantColors
Trait Implementations§
Source§impl Clone for ToastVariantPalette
impl Clone for ToastVariantPalette
Source§fn clone(&self) -> ToastVariantPalette
fn clone(&self) -> ToastVariantPalette
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 ToastVariantPalette
impl Debug for ToastVariantPalette
Auto Trait Implementations§
impl Freeze for ToastVariantPalette
impl RefUnwindSafe for ToastVariantPalette
impl Send for ToastVariantPalette
impl Sync for ToastVariantPalette
impl Unpin for ToastVariantPalette
impl UnsafeUnpin for ToastVariantPalette
impl UnwindSafe for ToastVariantPalette
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