pub struct Message {
pub title: Option<String>,
pub text: String,
}
Expand description
The Message
struct is used when displaying
a message to a user.
Fields§
§title: Option<String>
This will display a title in the top-left of the message. If not present, no title is shown.
text: String
This is the main body of the message.
Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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