pub struct Message {
pub markdown: String,
pub display_start: Option<Instant>,
pub display_duration: Duration,
}Expand description
A message to be displayed to the user, one line max
Fields§
§markdown: String§display_start: Option<Instant>when the message was first displayed
display_duration: Durationminimal duration to display 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