pub struct FormFieldBuilder {
pub label: Option<&'static str>,
pub required: Option<bool>,
pub helper_text: Option<&'static str>,
pub error_message: Option<&'static str>,
pub children: Option<Vec<NodeBlueprint>>,
pub class: Option<&'static str>,
pub __strata_key: Option<String>,
}Fields§
§label: Option<&'static str>§required: Option<bool>§helper_text: Option<&'static str>§error_message: Option<&'static str>§children: Option<Vec<NodeBlueprint>>§class: Option<&'static str>§__strata_key: Option<String>Implementations§
Source§impl FormFieldBuilder
impl FormFieldBuilder
pub fn label(self, val: impl Into<Option<&'static str>>) -> Self
pub fn required(self, val: impl Into<Option<bool>>) -> Self
pub fn helper_text(self, val: impl Into<Option<&'static str>>) -> Self
pub fn error_message(self, val: impl Into<Option<&'static str>>) -> Self
pub fn children( self, val: impl IntoChildren<Option<Vec<NodeBlueprint>>>, ) -> Self
pub fn class(self, val: impl Into<Option<&'static str>>) -> Self
pub fn key(self, key: impl Display) -> Self
pub fn build(self) -> View
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FormFieldBuilder
impl !Send for FormFieldBuilder
impl !Sync for FormFieldBuilder
impl !UnwindSafe for FormFieldBuilder
impl Forget for FormFieldBuilder
impl Freeze for FormFieldBuilder
impl Move for FormFieldBuilder
impl Unpin for FormFieldBuilder
impl UnsafeUnpin for FormFieldBuilder
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