pub struct FormField {
pub name: String,
pub partial_name: String,
pub alternate_name: Option<String>,
pub mapping_name: Option<String>,
pub flags: FieldFlags,
pub kind: FieldKind,
pub value: FieldValue,
pub default_value: FieldValue,
pub widget_obj_nums: Vec<u32>,
pub children: Vec<FormField>,
pub has_additional_actions: bool,
}Expand description
One form field — terminal (has a value) or non-terminal (container).
Fields§
§name: StringFully-qualified field name: parent names joined with ..
Empty for fields lacking /T.
partial_name: StringPartial field name /T — just this node’s name segment.
alternate_name: Option<String>/TU — alternate (tooltip) name.
mapping_name: Option<String>/TM — mapping name for export.
flags: FieldFlagsCommon field flags from /Ff bits 1, 2, 3.
kind: FieldKindField type and subtype-specific data. Container for
non-terminal nodes that exist purely to namespace children.
value: FieldValueCurrent value (/V).
default_value: FieldValueDefault value (/DV).
widget_obj_nums: Vec<u32>Object numbers of widget annotations attached to this field.
Cross-link with PdfDocument::page_annotations to fetch the
renderable widgets.
children: Vec<FormField>Child fields (for container nodes; empty for terminal fields in the common single-widget case).
has_additional_actions: bool/AA additional-actions presence — bookkeeping flag, not a
parsed action set.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormField
impl RefUnwindSafe for FormField
impl Send for FormField
impl Sync for FormField
impl Unpin for FormField
impl UnsafeUnpin for FormField
impl UnwindSafe for FormField
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<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