pub struct XfaField {Show 15 fields
pub name: String,
pub binding: String,
pub field_type: XfaFieldType,
pub tooltip: Option<String>,
pub caption: Option<String>,
pub default_value: Option<String>,
pub value: Option<String>,
pub options: Vec<XfaOption>,
pub required: bool,
pub readonly: bool,
pub max_length: Option<u32>,
pub width: Option<f32>,
pub height: Option<f32>,
pub x: Option<f32>,
pub y: Option<f32>,
}Expand description
A field extracted from XFA template.
Fields§
§name: StringField name
binding: StringFull path/binding (e.g., “topmostSubform[0].Page1[0].field1[0]”)
field_type: XfaFieldTypeField type
tooltip: Option<String>Tooltip/caption
caption: Option<String>Caption text
default_value: Option<String>Default value
value: Option<String>Current value from datasets
options: Vec<XfaOption>Options for choice fields
required: boolIs field required
readonly: boolIs field read-only
max_length: Option<u32>Maximum length (for text fields)
width: Option<f32>Width hint
height: Option<f32>Height hint
x: Option<f32>X position hint
y: Option<f32>Y position hint
Implementations§
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
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