pub enum FieldAction {
JavaScript {
script: String,
async_exec: bool,
},
Format {
format_type: FormatActionType,
},
Validate {
validation_type: ValidateActionType,
},
Calculate {
expression: String,
},
SubmitForm {
url: String,
fields: Vec<String>,
include_empty: bool,
},
ResetForm {
fields: Vec<String>,
exclude: bool,
},
ImportData {
file_path: String,
},
SetField {
target_field: String,
value: FieldValue,
},
ShowHide {
fields: Vec<String>,
show: bool,
},
PlaySound {
sound_name: String,
volume: f32,
},
Custom {
action_type: String,
parameters: HashMap<String, String>,
},
}Expand description
Field action types
Variants§
JavaScript
JavaScript action
Format
Format action
Fields
§
format_type: FormatActionTypeValidate
Validate action
Fields
§
validation_type: ValidateActionTypeCalculate
Calculate action
SubmitForm
Submit form action
ResetForm
Reset form action
ImportData
Import data action
SetField
Set field action
ShowHide
Show/Hide field action
PlaySound
Play sound action
Custom
Custom action
Trait Implementations§
Source§impl Clone for FieldAction
impl Clone for FieldAction
Source§fn clone(&self) -> FieldAction
fn clone(&self) -> FieldAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FieldAction
impl RefUnwindSafe for FieldAction
impl Send for FieldAction
impl Sync for FieldAction
impl Unpin for FieldAction
impl UnsafeUnpin for FieldAction
impl UnwindSafe for FieldAction
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