pub struct PageProps {
pub bind: Option<QueryStringPart>,
pub id: &'static str,
pub label: TextProp,
pub children: Children,
}
Expand description
Props for the Page
component.
Creates a new page in the form.
§Required Props
- id: [
&'static str
]- The id of the page.
- label:
impl Into<TextProp>
- The label of the page.
- children:
Children
- The contents of the page.
§Optional Props
- bind:
impl Into<QueryStringPart>
- An optional binding that creates a new group.
Fields§
§bind: Option<QueryStringPart>
An optional binding that creates a new group.
id: &'static str
The id of the page.
label: TextProp
The label of the page.
children: Children
The contents of the page.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PageProps
impl !RefUnwindSafe for PageProps
impl !Send for PageProps
impl !Sync for PageProps
impl Unpin for PageProps
impl !UnwindSafe for PageProps
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
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