pub enum ActionTrigger {
Keystroke,
Validate,
Format,
Calculate,
CursorEnter,
CursorExit,
Focus,
Blur,
PageOpen,
PageClose,
}Expand description
Action trigger types from the /AA (Additional Actions) dictionary on a
form field or page.
Each variant maps to a PDF additional-action key per ISO 32000-2 §12.6.3.
Most are field-level; PageOpen and PageClose are page-level.
Variants§
Keystroke
/K — fires on every keystroke while a text field is being edited.
Used for input filtering (e.g. allow only digits).
Validate
/V — fires when the field’s value is committed (focus loss or
explicit submit). Used for validation; the script may reject the
value.
Format
/F — fires before the field’s value is displayed. Used to format
the visual representation (e.g. number formatting, dates).
Calculate
/C — fires when any field referenced in this field’s calculation
order changes. Used to derive a value from other fields.
CursorEnter
/E — fires when the cursor enters the field’s annotation area.
CursorExit
/X — fires when the cursor exits the field’s annotation area.
Focus
/Fo — fires when the field gains keyboard focus.
Blur
/Bl — fires when the field loses keyboard focus.
PageOpen
/O — page-level: fires when the page is opened in a viewer.
PageClose
/C (page-level): fires when the page is closed in a viewer.
Trait Implementations§
Source§impl Clone for ActionTrigger
impl Clone for ActionTrigger
Source§fn clone(&self) -> ActionTrigger
fn clone(&self) -> ActionTrigger
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ActionTrigger
impl Debug for ActionTrigger
Source§impl PartialEq for ActionTrigger
impl PartialEq for ActionTrigger
Source§fn eq(&self, other: &ActionTrigger) -> bool
fn eq(&self, other: &ActionTrigger) -> bool
self and other values to be equal, and is used by ==.impl Copy for ActionTrigger
impl Eq for ActionTrigger
impl StructuralPartialEq for ActionTrigger
Auto Trait Implementations§
impl Freeze for ActionTrigger
impl RefUnwindSafe for ActionTrigger
impl Send for ActionTrigger
impl Sync for ActionTrigger
impl Unpin for ActionTrigger
impl UnsafeUnpin for ActionTrigger
impl UnwindSafe for ActionTrigger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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