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