pub struct XfaFieldModel {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
SDK-level model of one fillable XFA form field, derived from the merged form tree and the current layout.
Fields§
§name: StringFully-qualified dotted name with [n] indices omitted when 0
(Adobe display-SOM style), e.g. form1.applicant.name or
form1.rows.row[2].amount.
som_path: StringFully-qualified SOM path with explicit [n] on every segment,
e.g. form1[0].rows[0].row[2].amount[0].
field_type: XfaFieldTypeField type.
value: StringCurrent value (the form-tree raw value; radio groups report the selected member’s on-value, empty when none selected).
read_only: boolEffective read-only state: the field or an ancestor container sets
access="readOnly" | "protected" | "nonInteractive".
required: boolMandatory field (<validate nullTest="error">).
multiline: boolMultiline text edit (<ui><textEdit multiLine="1">).
Hidden/invisible/inactive via XFA presence (template, saved form state, or script-derived).
options: Vec<XfaFieldOption>Dropdown/list options. For radio groups: one option per member (display = member on-value).
on_value: Option<String>Checkbox on-value (<items> / checkButton binding), when known.
off_value: Option<String>Checkbox off-value, when known.
page: Option<usize>First page this field appears on (0-based), None when the field is
not part of the current layout (e.g. hidden).
rect: Option<XfaRect>Rectangle of the first widget occurrence.
widgets: Vec<XfaWidget>All layouted widget occurrences (radio groups: one per member).
bound_to_data: boolWhether the field has a bound data node in the datasets DOM. Values
written to unbound fields are persisted by creating the data node on
demand (default binding), except for bind match="none" fields.
bind_none: bool<bind match="none"> — the field deliberately does not participate
in data binding; Adobe persists such values only in the form packet.
Trait Implementations§
Source§impl Clone for XfaFieldModel
impl Clone for XfaFieldModel
Source§fn clone(&self) -> XfaFieldModel
fn clone(&self) -> XfaFieldModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for XfaFieldModel
impl RefUnwindSafe for XfaFieldModel
impl Send for XfaFieldModel
impl Sync for XfaFieldModel
impl Unpin for XfaFieldModel
impl UnsafeUnpin for XfaFieldModel
impl UnwindSafe for XfaFieldModel
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 more