pub struct XfaField {Show 16 fields
pub name: String,
pub som_path: String,
pub field_type: XfaFieldType,
pub value: String,
pub read_only: bool,
pub required: bool,
pub multiline: bool,
pub hidden: bool,
pub options: Vec<XfaFieldOption>,
pub on_value: Option<String>,
pub off_value: Option<String>,
pub page: Option<usize>,
pub rect: Option<XfaRect>,
pub widgets: Vec<XfaWidget>,
pub bound_to_data: bool,
pub bind_none: bool,
}Expand description
One logical XFA form field.
Fields§
§name: StringFully-qualified dotted name (Adobe display-SOM style, [n] omitted
when 0), e.g. form1.applicant.name. Accepted by
set_xfa_field_value.
som_path: StringFully-qualified SOM path with explicit indices,
e.g. form1[0].applicant[0].name[0]. Also accepted as a field name.
field_type: XfaFieldTypeField type.
value: StringCurrent value (radio groups: the selected member’s on-value).
read_only: boolEffective read-only state (the field or an ancestor container sets
access="readOnly" | "protected" | "nonInteractive", in the template
or in the saved form state).
required: boolMandatory field (<validate nullTest="error">).
multiline: boolMultiline text edit.
Hidden / invisible / inactive presence.
options: Vec<XfaFieldOption>Dropdown options; for radio groups one option per member.
on_value: Option<String>Checkbox on-value, when known.
off_value: Option<String>Checkbox off-value, when known.
page: Option<usize>First page the field appears on (0-based in the XFA layout); None
when the field is not part of the current layout (e.g. hidden, or on
a master page).
rect: Option<XfaRect>Rectangle of the first widget occurrence.
widgets: Vec<XfaWidget>All widget occurrences (radio groups: one per member).
bound_to_data: boolWhether a datasets node currently backs this field. Unbound fields
(except bind="none") get their data node created on first write.
bind_none: bool<bind match="none"> — values of such fields are not persisted in
the datasets packet (Adobe keeps them in the saved form state only).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XfaField
impl RefUnwindSafe for XfaField
impl Send for XfaField
impl Sync for XfaField
impl Unpin for XfaField
impl UnsafeUnpin for XfaField
impl UnwindSafe for XfaField
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreimpl<T> ParallelSend for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.