pub struct Field {
pub name: String,
pub kind: FieldKind,
pub value: Vec<String>,
pub flags: u32,
pub read_only: bool,
pub required: bool,
pub options: Vec<String>,
pub widgets: Vec<(Option<usize>, [f64; 4])>,
pub signature: Option<Signature>,
}Expand description
a field of the interactive form
Fields§
§name: Stringthe full name: the partial names of its parents and its own, with dots
kind: FieldKind§value: Vec<String>the value: text, the chosen option(s), a button’s state (“Off” when not checked; the export value of /Opt when the state is a place in it)
flags: u32/Ff
read_only: bool§required: bool§options: Vec<String>the options of a choice field, as shown
widgets: Vec<(Option<usize>, [f64; 4])>the widgets: the page (when known) and the rectangle
signature: Option<Signature>for a signature field with a value
Trait Implementations§
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Forget for Field
impl Freeze for Fieldwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(Option<usize>, [f64; 4])>: Freeze,
PhantomData<(u64, u64)>: Freeze,
impl Move for Field
impl RefUnwindSafe for Field
impl Send for Fieldwhere
RawVecInner: Send,
impl Sync for Fieldwhere
RawVecInner: Sync,
impl Unpin for Field
impl UnsafeUnpin for Fieldwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(Option<usize>, [f64; 4])>: UnsafeUnpin,
PhantomData<(u64, u64)>: UnsafeUnpin,
impl UnwindSafe for Fieldwhere
RawVecInner: UnwindSafe,
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