pub struct ToastStyle {Show 13 fields
pub background: Option<Color>,
pub border: Option<Color>,
pub border_width: Option<f32>,
pub text: Option<Color>,
pub text_secondary: Option<Color>,
pub font_size: Option<f32>,
pub radius: Option<f32>,
pub padding: Option<(f32, f32)>,
pub info: Option<Color>,
pub success: Option<Color>,
pub warn: Option<Color>,
pub error: Option<Color>,
pub backdrop: Option<Backdrop>,
}Fields§
§background: Option<Color>§border: Option<Color>§border_width: Option<f32>§text: Option<Color>§text_secondary: Option<Color>§font_size: Option<f32>§radius: Option<f32>§padding: Option<(f32, f32)>§info: Option<Color>§success: Option<Color>§warn: Option<Color>§error: Option<Color>§backdrop: Option<Backdrop>Implementations§
Source§impl ToastStyle
impl ToastStyle
pub const fn new() -> ToastStyle
pub const fn background(self, color: Color) -> ToastStyle
pub const fn border(self, color: Color) -> ToastStyle
pub const fn border_width(self, width: f32) -> ToastStyle
pub const fn text(self, color: Color) -> ToastStyle
pub const fn text_secondary(self, color: Color) -> ToastStyle
pub const fn font_size(self, size: f32) -> ToastStyle
pub const fn radius(self, radius: f32) -> ToastStyle
pub const fn padding_xy(self, pad_x: f32, pad_y: f32) -> ToastStyle
pub const fn info(self, color: Color) -> ToastStyle
pub const fn success(self, color: Color) -> ToastStyle
pub const fn warn(self, color: Color) -> ToastStyle
pub const fn error(self, color: Color) -> ToastStyle
pub const fn backdrop(self, backdrop: Backdrop) -> ToastStyle
Trait Implementations§
Source§impl Clone for ToastStyle
impl Clone for ToastStyle
Source§fn clone(&self) -> ToastStyle
fn clone(&self) -> ToastStyle
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 moreimpl Copy for ToastStyle
Source§impl Debug for ToastStyle
impl Debug for ToastStyle
Source§impl Default for ToastStyle
impl Default for ToastStyle
Source§fn default() -> ToastStyle
fn default() -> ToastStyle
Returns the “default value” for a type. Read more
Source§impl PartialEq for ToastStyle
impl PartialEq for ToastStyle
impl StructuralPartialEq for ToastStyle
Auto Trait Implementations§
impl Freeze for ToastStyle
impl RefUnwindSafe for ToastStyle
impl Send for ToastStyle
impl Sync for ToastStyle
impl Unpin for ToastStyle
impl UnsafeUnpin for ToastStyle
impl UnwindSafe for ToastStyle
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