pub struct FormFieldChoice {
pub name: String,
pub rect: [f32; 4],
pub page_index: usize,
pub options: Vec<String>,
pub value: Option<String>,
pub combo_box: bool,
pub default_appearance: Option<String>,
}Expand description
/FT /Ch choice field (§12.7.4.4). Combo-box (/Ff bit 17) when
combo_box is true; list box otherwise.
Fields§
§name: String/T partial field name.
rect: [f32; 4]/Rect widget bounds.
page_index: usize0-based page index.
options: Vec<String>/Opt array — each entry is one option label.
value: Option<String>/V currently-selected value (must appear in options to
round-trip cleanly).
combo_box: boolTrue ⇒ combo box; false ⇒ list box.
default_appearance: Option<String>/DA default appearance.
Trait Implementations§
Source§impl Clone for FormFieldChoice
impl Clone for FormFieldChoice
Source§fn clone(&self) -> FormFieldChoice
fn clone(&self) -> FormFieldChoice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FormFieldChoice
impl RefUnwindSafe for FormFieldChoice
impl Send for FormFieldChoice
impl Sync for FormFieldChoice
impl Unpin for FormFieldChoice
impl UnsafeUnpin for FormFieldChoice
impl UnwindSafe for FormFieldChoice
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