pub struct Fieldset {
pub name: Option<String>,
pub fields: Vec<String>,
pub classes: Vec<String>,
pub description: Option<String>,
pub collapsible: bool,
pub collapsed: bool,
}Expand description
Fieldset for organizing form fields
Fields§
§name: Option<String>Fieldset name
fields: Vec<String>Fields in this set
classes: Vec<String>CSS classes
description: Option<String>Description
collapsible: boolIs collapsible?
collapsed: boolIs initially collapsed?
Implementations§
Source§impl Fieldset
impl Fieldset
Sourcepub fn new(fields: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn new(fields: impl IntoIterator<Item = impl Into<String>>) -> Self
Create a new fieldset
Sourcepub fn named(
name: impl Into<String>,
fields: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn named( name: impl Into<String>, fields: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Named fieldset
Sourcepub fn description(self, desc: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
Set description
Sourcepub fn collapsible(self) -> Self
pub fn collapsible(self) -> Self
Make collapsible
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fieldset
impl<'de> Deserialize<'de> for Fieldset
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
Auto Trait Implementations§
impl Freeze for Fieldset
impl RefUnwindSafe for Fieldset
impl Send for Fieldset
impl Sync for Fieldset
impl Unpin for Fieldset
impl UnwindSafe for Fieldset
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