pub struct Section<C = Schema> { /* private fields */ }Expand description
Implementations§
Source§impl Section<()>
impl Section<()>
Sourcepub fn columns<M>(self, children: impl IntoDetail<M>) -> Section<Detail<M>>
pub fn columns<M>(self, children: impl IntoDetail<M>) -> Section<Detail<M>>
Holds a detail page’s columns and blocks.
Source§impl<F> Section<Schema<F>>
impl<F> Section<Schema<F>>
Sourcepub fn visible_when(
self,
watched: &impl Watched<F>,
values: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn visible_when( self, watched: &impl Watched<F>, values: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Shows the block and every field it holds only while watched posts one of
values, as TextField::visible_when shows a
field.
Trait Implementations§
Source§impl<M> IntoDetail<M> for Section<Detail<M>>
impl<M> IntoDetail<M> for Section<Detail<M>>
fn into_detail(self) -> Detail<M>
Source§impl<M> IntoDetail<M> for Section<()>
impl<M> IntoDetail<M> for Section<()>
fn into_detail(self) -> Detail<M>
Source§impl<F> IntoSchema<F> for Section<Schema<F>>
impl<F> IntoSchema<F> for Section<Schema<F>>
fn into_schema(self) -> Schema<F>
Source§impl<F> IntoSchema<F> for Section<()>
impl<F> IntoSchema<F> for Section<()>
fn into_schema(self) -> Schema<F>
Auto Trait Implementations§
impl<C> Freeze for Section<C>where
C: Freeze,
impl<C> RefUnwindSafe for Section<C>where
C: RefUnwindSafe,
impl<C> Send for Section<C>where
C: Send,
impl<C> Sync for Section<C>where
C: Sync,
impl<C> Unpin for Section<C>where
C: Unpin,
impl<C> UnsafeUnpin for Section<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for Section<C>where
C: UnwindSafe,
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