[][src]Struct ommui_relm_widgets::message::Param

pub struct Param {
    pub message: String,
    pub details: Option<String>,
    pub confirm_button_caption: Option<String>,
}

The parameters for creating the model.

Fields

message: String

The message which should be shown.

details: Option<String>

A detailed description of the message. Could be a backtrace or contents of a log file. When set, an expander will be added which opens the detailed view.

confirm_button_caption: Option<String>

The text which gets shown on the confirm button.

If this is None, no confirm button is shown. If it is Some, then the confirm button gets shown with the text on it. If this is used, it will usually be something like "OK", "Confirm" or "Close".

Auto Trait Implementations

impl Sync for Param

impl Send for Param

impl Unpin for Param

impl RefUnwindSafe for Param

impl UnwindSafe for Param

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err