Struct material_yew::snackbar::SnackbarProps [−][src]
pub struct SnackbarProps { pub open: bool, pub timeout_ms: i32, pub close_on_escape: bool, pub label_text: Cow<'static, str>, pub stacked: bool, pub leading: bool, pub onopening: Callback<()>, pub onopened: Callback<()>, pub onclosing: Callback<Option<String>>, pub onclosed: Callback<Option<String>>, pub snackbar_link: WeakComponentLink<MatSnackbar>, pub children: Children, }
Expand description
Fields
open: bool
timeout_ms: i32
close_on_escape: bool
label_text: Cow<'static, str>
stacked: bool
leading: bool
onopening: Callback<()>
Binds to MDCSnackbar:opening
event
See events docs to learn more.
onopened: Callback<()>
Binds to MDCSnackbar:opened
event
See events docs to learn more.
onclosing: Callback<Option<String>>
Binds to MDCSnackbar:
event
The argument passed to callback corresponds to reason
parameter of the
event
See events docs to learn more.
onclosed: Callback<Option<String>>
Binds to closing
event
The argument passed to callback corresponds to reason
parameter of the
event
See events docs to learn more.
snackbar_link: WeakComponentLink<MatSnackbar>
[WeakComponentLink
] for MatList
which provides the following methods
show(&self)
close(&self, reason: &str)
See [WeakComponentLink
] documentation for more information
children: Children
Trait Implementations
impl Clone for SnackbarProps
[src]
impl Clone for SnackbarProps
[src]fn clone(&self) -> SnackbarProps
[src]
fn clone(&self) -> SnackbarProps
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Properties for SnackbarProps
[src]
impl Properties for SnackbarProps
[src]Auto Trait Implementations
impl !RefUnwindSafe for SnackbarProps
impl !Send for SnackbarProps
impl !Sync for SnackbarProps
impl Unpin for SnackbarProps
impl !UnwindSafe for SnackbarProps
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T, V> IntoOptPropValue<V> for T where
T: IntoPropValue<Option<V>>,
[src]
impl<T, V> IntoOptPropValue<V> for T where
T: IntoPropValue<Option<V>>,
[src]pub fn into_opt_prop_value(self) -> Option<V>
[src]
pub fn into_opt_prop_value(self) -> Option<V>
[src]Convert self
to an optional value of a Properties
struct.
impl<T> IntoPropValue<Option<T>> for T
[src]
impl<T> IntoPropValue<Option<T>> for T
[src]pub fn into_prop_value(self) -> Option<T>
[src]
pub fn into_prop_value(self) -> Option<T>
[src]Convert self
to a value of a Properties
struct.
impl<T> IntoPropValue<T> for T
[src]
impl<T> IntoPropValue<T> for T
[src]pub fn into_prop_value(self) -> T
[src]
pub fn into_prop_value(self) -> T
[src]Convert self
to a value of a Properties
struct.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more