pub struct SettingsGroup {
pub title: String,
pub children: Vec<Widget>,
}Expand description
A Widget::Settings: under its overline title (none when empty),
a bordered group with one row per child, the child’s label at the
left and its control at the right, a line between rows. A
Widget::Hinted child’s hint shows under its label; a
Widget::Check with no label is a switch, its text the label.
The Preferences search narrows the rows by label and hint.
Fields§
§title: String§children: Vec<Widget>Trait Implementations§
Source§impl Clone for SettingsGroup
impl Clone for SettingsGroup
Source§impl Debug for SettingsGroup
impl Debug for SettingsGroup
Source§impl Default for SettingsGroup
impl Default for SettingsGroup
Source§impl<'de> Deserialize<'de> for SettingsGroupwhere
SettingsGroup: Default,
impl<'de> Deserialize<'de> for SettingsGroupwhere
SettingsGroup: 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<SettingsGroup> for Widget
impl From<SettingsGroup> for Widget
Source§fn from(block: SettingsGroup) -> Self
fn from(block: SettingsGroup) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SettingsGroup
impl PartialEq for SettingsGroup
Source§impl Serialize for SettingsGroup
impl Serialize for SettingsGroup
impl StructuralPartialEq for SettingsGroup
Auto Trait Implementations§
impl Forget for SettingsGroup
impl Freeze for SettingsGroup
impl Move for SettingsGroup
impl RefUnwindSafe for SettingsGroup
impl Send for SettingsGroup
impl Sync for SettingsGroup
impl Unpin for SettingsGroup
impl UnsafeUnpin for SettingsGroup
impl UnwindSafe for SettingsGroup
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