pub struct FormSection { /* private fields */ }Expand description
A titled card section grouping related form fields.
Implementations§
Source§impl FormSection
impl FormSection
Sourcepub fn new(title: impl Into<String>) -> Self
pub fn new(title: impl Into<String>) -> Self
A section with a heading. Its fields sit in two columns unless you set
columns.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Adds a line under the section’s heading.
Sourcepub fn columns(self, columns: u8) -> Self
pub fn columns(self, columns: u8) -> Self
Sets how many columns the section’s fields sit in on a wide screen, from one to three.
Sourcepub fn fields(self, fields: impl IntoIterator<Item = Field>) -> Self
pub fn fields(self, fields: impl IntoIterator<Item = Field>) -> Self
Adds several fields to the section.
Trait Implementations§
Source§impl Clone for FormSection
impl Clone for FormSection
Auto Trait Implementations§
impl Forget for FormSection
impl Freeze for FormSection
impl Move for FormSection
impl RefUnwindSafe for FormSection
impl Send for FormSection
impl Sync for FormSection
impl Unpin for FormSection
impl UnsafeUnpin for FormSectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Field>: UnsafeUnpin,
impl UnwindSafe for FormSection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<K> ForeignKey<K> for K
impl<K> ForeignKey<K> for K
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more