MaterialSnackbarMessage
struct · ferroui-themes-material · v0.5.0
struct MaterialSnackbarMessage
Content/options for a queued snackbar. duration: None selects the native default:
short without an action, indefinite with an action.
Members
messageaction_labelwith_dismiss_actionaction_on_new_linedurationnewwith_actionwith_durationwith_dismiss_actionwith_action_on_new_lineeffective_duration
message
message: String
action_label
action_label: Option<String>
with_dismiss_action
with_dismiss_action: bool
action_on_new_line
action_on_new_line: bool
duration
duration: Option<MaterialSnackbarDuration>
new
fn new(message: impl Into<String>) -> Self
with_action
fn with_action(self: Self, label: impl Into<String>) -> Self
with_duration
fn with_duration(self: Self, duration: MaterialSnackbarDuration) -> Self
with_dismiss_action
fn with_dismiss_action(self: Self, visible: bool) -> Self
with_action_on_new_line
fn with_action_on_new_line(self: Self, value: bool) -> Self
effective_duration
fn effective_duration(self: &Self) -> MaterialSnackbarDuration
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherEquivalent<K>CastableFrom<ST, Uninit, Uninit>CastableFrom<ST, Initialized, Initialized>Read<Exclusive, BecauseExclusive>CloneDebugEqStructuralPartialEqPartialEqFrom<&str>From<String>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.