pub struct RenderProps<T, Config = ()>where
T: 'static,{
pub id: Option<Oco<'static, str>>,
pub name: Option<Oco<'static, str>>,
pub class: Option<Oco<'static, str>>,
pub style: Option<Oco<'static, str>>,
pub field_changed_class: Option<Oco<'static, str>>,
pub signal: T,
pub config: Config,
}
Expand description
Props provided during render to a type implementing FormField
.
Fields§
§id: Option<Oco<'static, str>>
§name: Option<Oco<'static, str>>
§class: Option<Oco<'static, str>>
§style: Option<Oco<'static, str>>
§field_changed_class: Option<Oco<'static, str>>
§signal: T
§config: Config
Implementations§
Source§impl<T, Config> RenderProps<T, Config>where
T: 'static,
impl<T, Config> RenderProps<T, Config>where
T: 'static,
Sourcepub fn builder() -> RenderPropsBuilder<T, Config>
pub fn builder() -> RenderPropsBuilder<T, Config>
Create a builder for building RenderProps
.
On the builder, call .id(...)
(optional), .name(...)
(optional), .class(...)
(optional), .style(...)
(optional), .field_changed_class(...)
(optional), .signal(...)
, .config(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RenderProps
.
Source§impl<T, Config> RenderProps<FormFieldSignal<T>, Config>
impl<T, Config> RenderProps<FormFieldSignal<T>, Config>
Trait Implementations§
Source§impl<T, Config> Clone for RenderProps<T, Config>
impl<T, Config> Clone for RenderProps<T, Config>
Source§fn clone(&self) -> RenderProps<T, Config>
fn clone(&self) -> RenderProps<T, Config>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T, Config> Freeze for RenderProps<T, Config>
impl<T, Config> RefUnwindSafe for RenderProps<T, Config>where
T: RefUnwindSafe,
Config: RefUnwindSafe,
impl<T, Config = ()> !Send for RenderProps<T, Config>
impl<T, Config = ()> !Sync for RenderProps<T, Config>
impl<T, Config> Unpin for RenderProps<T, Config>
impl<T, Config> UnwindSafe for RenderProps<T, Config>where
T: UnwindSafe,
Config: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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