pub struct FieldWiring<T>{
pub qs: QueryString,
pub value: Signal<Result<T, T::Err>>,
pub raw_value: Signal<String>,
pub set_value: Callback<T, ()>,
pub set_raw_value: Callback<String, ()>,
pub error: Signal<Option<Oco<'static, str>>>,
pub render_mode: Signal<bool>,
pub disabled: Signal<bool>,
}
Expand description
Used to wire an input field to the form context. For example, refer to the input field components in this library.
Fields§
§qs: QueryString
§value: Signal<Result<T, T::Err>>
§raw_value: Signal<String>
§set_value: Callback<T, ()>
§set_raw_value: Callback<String, ()>
§error: Signal<Option<Oco<'static, str>>>
§render_mode: Signal<bool>
§disabled: Signal<bool>
Implementations§
Auto Trait Implementations§
impl<T> Freeze for FieldWiring<T>
impl<T> !RefUnwindSafe for FieldWiring<T>
impl<T> !Send for FieldWiring<T>
impl<T> !Sync for FieldWiring<T>
impl<T> Unpin for FieldWiring<T>
impl<T> !UnwindSafe for FieldWiring<T>
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