pub struct MessageOptionsDTO {
pub Title: Option<String>,
pub IsModal: Option<bool>,
pub Detail: Option<String>,
pub ItemList: Option<Vec<String>>,
}Expand description
A serializable struct that holds all configuration options for a message
shown to the user via ShowMessage.
Fields§
§Title: Option<String>An optional title for the message dialog window.
IsModal: Option<bool>If true, the message will be modal, blocking interaction with the
rest of the UI until it is dismissed.
Detail: Option<String>Optional, more detailed text to display in the message body.
ItemList: Option<Vec<String>>A list of string titles for action buttons to display on the message.
The selected button’s title is returned by the ShowMessage effect.
Trait Implementations§
Source§impl Clone for MessageOptionsDTO
impl Clone for MessageOptionsDTO
Source§fn clone(&self) -> MessageOptionsDTO
fn clone(&self) -> MessageOptionsDTO
Returns a duplicate of the value. Read more
1.0.0 · 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 MessageOptionsDTO
impl Debug for MessageOptionsDTO
Source§impl Default for MessageOptionsDTO
impl Default for MessageOptionsDTO
Source§fn default() -> MessageOptionsDTO
fn default() -> MessageOptionsDTO
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageOptionsDTO
impl<'de> Deserialize<'de> for MessageOptionsDTO
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MessageOptionsDTO
impl RefUnwindSafe for MessageOptionsDTO
impl Send for MessageOptionsDTO
impl Sync for MessageOptionsDTO
impl Unpin for MessageOptionsDTO
impl UnwindSafe for MessageOptionsDTO
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