pub struct ToastProps {
pub category: ToastCategory,
pub title: Option<Cow<'static, str>>,
pub description: Option<Cow<'static, str>>,
pub class: Option<Cow<'static, str>>,
pub attrs: AttrMap,
}Expand description
Props for a single toast message.
Fields§
§category: ToastCategory§title: Option<Cow<'static, str>>§description: Option<Cow<'static, str>>§class: Option<Cow<'static, str>>§attrs: AttrMapImplementations§
Source§impl ToastProps
impl ToastProps
pub const __BASECOAT_EXTEND_FIELD: Option<&'static str>
Sourcepub fn builder() -> ToastPropsBuilder
pub fn builder() -> ToastPropsBuilder
Create a builder for this prop struct.
Trait Implementations§
Source§impl Clone for ToastProps
impl Clone for ToastProps
Source§fn clone(&self) -> ToastProps
fn clone(&self) -> ToastProps
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 moreSource§impl Debug for ToastProps
impl Debug for ToastProps
Source§impl Default for ToastProps
impl Default for ToastProps
Source§fn default() -> ToastProps
fn default() -> ToastProps
Returns the “default value” for a type. Read more
Source§impl From<ToastPropsBuilder> for ToastProps
impl From<ToastPropsBuilder> for ToastProps
Source§fn from(b: ToastPropsBuilder) -> Self
fn from(b: ToastPropsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ToastProps
impl RefUnwindSafe for ToastProps
impl Send for ToastProps
impl Sync for ToastProps
impl Unpin for ToastProps
impl UnsafeUnpin for ToastProps
impl UnwindSafe for ToastProps
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