pub enum Action {
Uri(String),
GoTo(Destination),
GoToR {
file: String,
destination: Option<Destination>,
},
Named(String),
JavaScript(String),
SubmitForm {
target: Option<String>,
},
Launch {
file: Option<String>,
},
ImportData {
file: Option<String>,
},
Unknown(String),
}Expand description
An action (ISO 32000-2 §12.6).
Variants§
Uri(String)
A URI action.
GoTo(Destination)
A GoTo action.
GoToR
A GoToR action.
Named(String)
A Named action.
JavaScript(String)
A JavaScript action.
SubmitForm
Submit form data to a target URL.
Launch
Launch an external application or document.
ImportData
Import form data from an external FDF file.
Unknown(String)
Unknown action type.
Implementations§
Source§impl Action
impl Action
Sourcepub fn action_type(&self) -> ActionType
pub fn action_type(&self) -> ActionType
The ActionType discriminator for this action — useful when
you want to filter or count action types without matching every
concrete variant. For Action::Unknown, returns the preserved
/S name inside ActionType::Unknown.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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