FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    message

    message: String
    

    Source

    action_label

    action_label: Option<String>
    

    Source

    with_dismiss_action

    with_dismiss_action: bool
    

    Source

    action_on_new_line

    action_on_new_line: bool
    

    Source

    duration

    duration: Option<MaterialSnackbarDuration>
    

    Source

    new

    fn new(message: impl Into<String>) -> Self
    

    Source

    with_action

    fn with_action(self: Self, label: impl Into<String>) -> Self
    

    Source

    with_duration

    fn with_duration(self: Self, duration: MaterialSnackbarDuration) -> Self
    

    Source

    with_dismiss_action

    fn with_dismiss_action(self: Self, visible: bool) -> Self
    

    Source

    with_action_on_new_line

    fn with_action_on_new_line(self: Self, value: bool) -> Self
    

    Source

    effective_duration

    fn effective_duration(self: &Self) -> MaterialSnackbarDuration
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Equivalent<K>
    • CastableFrom<ST, Uninit, Uninit>
    • CastableFrom<ST, Initialized, Initialized>
    • Read<Exclusive, BecauseExclusive>
    • Clone
    • Debug
    • Eq
    • StructuralPartialEq
    • PartialEq
    • From<&str>
    • From<String>

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.