pub struct Section {
pub icon: String,
pub title: String,
pub children: Vec<String>,
pub collapsed: bool,
pub accent_color: String,
pub removable: bool,
pub on_remove: String,
}Fields§
§icon: String§title: String§children: Vec<String>§collapsed: bool§accent_color: String§removable: bool§on_remove: StringImplementations§
Source§impl Section
impl Section
pub fn new(title: String) -> Section
pub fn icon(self, icon: String) -> Section
pub fn child(self, child: String) -> Section
pub fn children(self, children: Vec<String>) -> Section
pub fn collapsed(self, collapsed: bool) -> Section
pub fn accent(self, color: String) -> Section
pub fn removable(self, on_remove: String) -> Section
Trait Implementations§
impl Eq for Section
impl StructuralPartialEq for Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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