pub enum FormFieldType {
PlainText {
multi_line: bool,
},
RichText,
ComboBox {
choices: Vec<String>,
},
DropDownList {
choices: Vec<String>,
},
DatePicker {
format: Option<String>,
},
Unknown,
}Expand description
The kind of a Structured Document Tag form control (ECMA-376 §17.5.2).
Determined by which child element is present inside <w:sdtPr>.
Variants§
PlainText
Plain-text input control (<w:text>).
multi_line is true when w:multiLine is “1”, “true”, or “on”.
RichText
Rich-text area (<w:richText>).
ComboBox
Combo box with a fixed list of choices (<w:comboBox>).
DropDownList
Drop-down list (<w:dropDownList>).
DatePicker
Date picker (<w:date>).
Unknown
SDT whose type was not recognised by this library.
Trait Implementations§
Source§impl Clone for FormFieldType
impl Clone for FormFieldType
Source§fn clone(&self) -> FormFieldType
fn clone(&self) -> FormFieldType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormFieldType
impl Debug for FormFieldType
Source§impl PartialEq for FormFieldType
impl PartialEq for FormFieldType
impl StructuralPartialEq for FormFieldType
Auto Trait Implementations§
impl Freeze for FormFieldType
impl RefUnwindSafe for FormFieldType
impl Send for FormFieldType
impl Sync for FormFieldType
impl Unpin for FormFieldType
impl UnsafeUnpin for FormFieldType
impl UnwindSafe for FormFieldType
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