pub struct FormField {
pub alias: Option<String>,
pub tag: Option<String>,
pub field_type: FormFieldType,
pub current_value: String,
}Expand description
A form field extracted from a Structured Document Tag (ECMA-376 §17.5.2).
Returned by FormFieldExt::form_field and collected by
BodyExt::form_fields.
Fields§
§alias: Option<String>Human-readable label (<w:alias w:val="…"/>).
tag: Option<String>Machine-readable tag (<w:tag w:val="…"/>).
field_type: FormFieldTypeThe kind of control inferred from <w:sdtPr>.
current_value: StringCurrent text content of the SDT, extracted from its sdtContent.
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
Mutably borrows from an owned value. Read more