pub enum LayoutNode {
Show 17 variants
Text(RichText),
Section {
children: Vec<LayoutNode>,
accessory: Option<Box<LayoutNode>>,
style: LayoutStyle,
},
Container {
children: Vec<LayoutNode>,
style: LayoutStyle,
},
Columns(Vec<LayoutColumn>),
Grid {
columns: u16,
children: Vec<LayoutNode>,
},
Image(Media),
MediaGallery(Vec<MediaGalleryItem>),
File(Media),
List {
ordered: bool,
items: Vec<Vec<LayoutNode>>,
},
Table {
rows: Vec<Vec<TableCell>>,
},
Quote(RichText),
Code {
text: String,
language: Option<String>,
},
Divider,
Map(LocationContent),
Details {
summary: RichText,
children: Vec<LayoutNode>,
open: bool,
},
Actions(ActionRow),
PlatformNative(PlatformNativeData),
}Variants§
Text(RichText)
Section
Container
Columns(Vec<LayoutColumn>)
Grid
Image(Media)
MediaGallery(Vec<MediaGalleryItem>)
File(Media)
List
Table
Quote(RichText)
Code
Divider
Map(LocationContent)
Details
Actions(ActionRow)
PlatformNative(PlatformNativeData)
Trait Implementations§
Source§impl Clone for LayoutNode
impl Clone for LayoutNode
Source§fn clone(&self) -> LayoutNode
fn clone(&self) -> LayoutNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayoutNode
impl Debug for LayoutNode
Source§impl PartialEq for LayoutNode
impl PartialEq for LayoutNode
impl StructuralPartialEq for LayoutNode
Auto Trait Implementations§
impl !Freeze for LayoutNode
impl RefUnwindSafe for LayoutNode
impl Send for LayoutNode
impl Sync for LayoutNode
impl Unpin for LayoutNode
impl UnsafeUnpin for LayoutNode
impl UnwindSafe for LayoutNode
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