pub enum FormFieldType {
TextField {
value: Option<String>,
placeholder: Option<String>,
multiline: bool,
password: bool,
read_only: bool,
max_length: Option<u32>,
font_size: f64,
},
Checkbox {
checked: bool,
read_only: bool,
},
Dropdown {
options: Vec<String>,
value: Option<String>,
read_only: bool,
font_size: f64,
},
RadioButton {
value: String,
checked: bool,
read_only: bool,
},
}Expand description
Configuration for an interactive PDF form field.
Variants§
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 moreAuto 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