Enum xplr::ui::ContentBody [−][src]
pub enum ContentBody {
StaticParagraph {
render: String,
},
DynamicParagraph {
render: String,
},
StaticList {
render: Vec<String>,
},
DynamicList {
render: String,
},
StaticTable {
widths: Vec<Constraint>,
col_spacing: Option<u16>,
render: Vec<Vec<String>>,
},
DynamicTable {
widths: Vec<Constraint>,
col_spacing: Option<u16>,
render: String,
},
}
Variants
A paragraph to render
Fields of StaticParagraph
render: String
A Lua function that returns a paragraph to render
Fields of DynamicParagraph
render: String
List to render
A Lua function that returns lines to render
Fields of DynamicList
render: String
A table to render
A Lua function that returns a table to render
Fields of DynamicTable
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ContentBody
impl Send for ContentBody
impl Sync for ContentBody
impl Unpin for ContentBody
impl UnwindSafe for ContentBody
Blanket Implementations
Mutably borrows from an owned value. Read more