pub struct FieldNode {Show 22 fields
pub partial_name: String,
pub alternate_name: Option<String>,
pub mapping_name: Option<String>,
pub field_type: Option<FieldType>,
pub flags: FieldFlags,
pub value: Option<FieldValue>,
pub default_value: Option<FieldValue>,
pub default_appearance: Option<String>,
pub quadding: Option<Quadding>,
pub max_len: Option<u32>,
pub options: Vec<ChoiceOption>,
pub top_index: Option<u32>,
pub rect: Option<[f32; 4]>,
pub appearance_state: Option<String>,
pub on_state: Option<String>,
pub page_index: Option<usize>,
pub parent: Option<FieldId>,
pub children: Vec<FieldId>,
pub object_id: Option<(i32, i32)>,
pub has_actions: bool,
pub mk: Option<MkDict>,
pub border_style: Option<BorderStyle>,
}Expand description
A single node in the AcroForm field tree.
Fields§
§partial_name: StringPartial field name (/T).
alternate_name: Option<String>Alternate field name (/TU).
mapping_name: Option<String>Mapping name (/TM).
field_type: Option<FieldType>Field type (/FT): may be inherited from parent.
flags: FieldFlagsField flags (/Ff).
value: Option<FieldValue>Current value (/V).
default_value: Option<FieldValue>Default value (/DV).
default_appearance: Option<String>Default appearance string (/DA).
quadding: Option<Quadding>Quadding / text alignment (/Q).
max_len: Option<u32>Maximum length (/MaxLen) for text fields.
options: Vec<ChoiceOption>Options (/Opt) for choice fields.
top_index: Option<u32>Top index (/TI) for list box scroll position.
rect: Option<[f32; 4]>Widget rectangle (/Rect).
appearance_state: Option<String>Current appearance state (/AS).
on_state: Option<String>On-state name for button widgets: the first non-Off key of this
widget’s /AP /N sub-dictionary. None for non-button widgets or
when no appearance dictionary is present.
page_index: Option<usize>Page index (0-based) this widget appears on.
parent: Option<FieldId>Parent node in the field tree.
children: Vec<FieldId>Child nodes.
object_id: Option<(i32, i32)>PDF object identifier (obj_number, gen_number).
has_actions: boolWhether this field has /AA (additional actions).
mk: Option<MkDict>Widget appearance characteristics (/MK).
border_style: Option<BorderStyle>Border style (/BS).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldNode
impl RefUnwindSafe for FieldNode
impl Send for FieldNode
impl Sync for FieldNode
impl Unpin for FieldNode
impl UnsafeUnpin for FieldNode
impl UnwindSafe for FieldNode
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