#[non_exhaustive]pub enum Data {
TextParagraph(Box<TextParagraph>),
Image(Box<Image>),
KeyValue(Box<KeyValue>),
}Expand description
A WidgetMarkup can only have one of the following items. You can use
multiple WidgetMarkup fields to display more items.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TextParagraph(Box<TextParagraph>)
Display a text paragraph in this widget.
Image(Box<Image>)
Display an image in this widget.
KeyValue(Box<KeyValue>)
Display a key value item in this widget.
Trait Implementations§
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnsafeUnpin for Data
impl UnwindSafe for Data
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