pub struct DialogFormState {
pub errors: FormErrors,
pub pending: bool,
pub submit: Callback<()>,
}Expand description
What a DialogForm hands its render function, like the state lumen-react passes to a
function child.
Fields§
§errors: FormErrorsThe errors the last request returned, or the failure message. Pass them to an
ErrorSummary.
pending: boolTrue while the request runs; the dialog can’t be dismissed meanwhile. Pass it to the
submit Button’s loading.
submit: Callback<()>Submits the form without a submit event and without values. Dioxus Native reports no
submit events, so call it from the submit button’s onclick after prevent_default().
Trait Implementations§
Source§impl Clone for DialogFormState
impl Clone for DialogFormState
Source§impl Debug for DialogFormState
impl Debug for DialogFormState
Source§impl PartialEq for DialogFormState
impl PartialEq for DialogFormState
impl StructuralPartialEq for DialogFormState
Auto Trait Implementations§
impl !RefUnwindSafe for DialogFormState
impl !Send for DialogFormState
impl !Sync for DialogFormState
impl !UnwindSafe for DialogFormState
impl Forget for DialogFormState
impl Freeze for DialogFormStatewhere
*const u8 is !null: Freeze,
PhantomData<FormFieldError>: Freeze,
PhantomData<String>: Freeze,
&'static UnsyncStorage: Freeze,
NonZero<u64>: Freeze,
&'static Location<'static>: Freeze,
PhantomData<Option<ExternalListenerCallback<(), ()>>>: Freeze,
impl Move for DialogFormState
impl Unpin for DialogFormState
impl UnsafeUnpin for DialogFormStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<FormFieldError>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
&'static UnsyncStorage: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
&'static Location<'static>: UnsafeUnpin,
PhantomData<Option<ExternalListenerCallback<(), ()>>>: UnsafeUnpin,
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,
impl<T> DependencyElement for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
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 moreSource§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.