pub struct PanelSection {
pub id: String,
pub title: String,
pub count: Option<usize>,
pub summary: Option<String>,
pub open: bool,
pub actions: Vec<PanelAction>,
pub children: Vec<Widget>,
}Expand description
A Widget::Section: a fold the user opens and closes, its title in
small capitals, the count of what it holds, a one-line summary while
closed, icon actions at its right end, and its children, whose fields
share one label column.
Fields§
§id: StringKeeps the fold’s state; the title when empty.
title: String§count: Option<usize>§summary: Option<String>§open: boolOpen the first time it is shown.
actions: Vec<PanelAction>§children: Vec<Widget>Trait Implementations§
Source§impl Clone for PanelSection
impl Clone for PanelSection
Source§impl Debug for PanelSection
impl Debug for PanelSection
Source§impl Default for PanelSection
impl Default for PanelSection
Source§impl<'de> Deserialize<'de> for PanelSectionwhere
PanelSection: Default,
impl<'de> Deserialize<'de> for PanelSectionwhere
PanelSection: Default,
Source§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
Source§impl From<PanelSection> for Widget
impl From<PanelSection> for Widget
Source§fn from(block: PanelSection) -> Self
fn from(block: PanelSection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PanelSection
impl PartialEq for PanelSection
Source§impl Serialize for PanelSection
impl Serialize for PanelSection
impl StructuralPartialEq for PanelSection
Auto Trait Implementations§
impl Forget for PanelSection
impl Freeze for PanelSection
impl Move for PanelSection
impl RefUnwindSafe for PanelSection
impl Send for PanelSection
impl Sync for PanelSection
impl Unpin for PanelSection
impl UnsafeUnpin for PanelSection
impl UnwindSafe for PanelSection
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