pub enum FormAction {
SubmitForm {
url: String,
flags: SubmitFormFlags,
},
ResetForm,
JavaScript {
script: String,
},
Uri {
uri: String,
},
GoToNamed {
name: String,
},
}Expand description
Actions that can be triggered by a push button.
Variants§
SubmitForm
Submit form data to a URL.
ResetForm
Reset form fields to their default values.
JavaScript
Execute JavaScript.
Uri
Navigate to a URI.
GoToNamed
Go to a named destination.
Trait Implementations§
Source§impl Clone for FormAction
impl Clone for FormAction
Source§fn clone(&self) -> FormAction
fn clone(&self) -> FormAction
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 Freeze for FormAction
impl RefUnwindSafe for FormAction
impl Send for FormAction
impl Sync for FormAction
impl Unpin for FormAction
impl UnsafeUnpin for FormAction
impl UnwindSafe for FormAction
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> 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