[][src]Enum pdf_form::FieldState

pub enum FieldState {
    Button,
    Radio {
        selected: String,
        options: Vec<String>,
        readonly: bool,
        required: bool,
    },
    CheckBox {
        is_checked: bool,
        readonly: bool,
        required: bool,
    },
    ListBox {
        selected: Vec<String>,
        options: Vec<String>,
        multiselect: bool,
        readonly: bool,
        required: bool,
    },
    ComboBox {
        selected: Vec<String>,
        options: Vec<String>,
        editable: bool,
        readonly: bool,
        required: bool,
    },
    Text {
        text: String,
        readonly: bool,
        required: bool,
    },
    Unknown,
}

The current state of a form field

Variants

Button

Push buttons have no state

Radio

selected is the singular option from options that is selected

Fields of Radio

selected: Stringoptions: Vec<String>readonly: boolrequired: bool
CheckBox

The toggle state of the checkbox

Fields of CheckBox

is_checked: boolreadonly: boolrequired: bool
ListBox

selected is the list of selected options from options

Fields of ListBox

selected: Vec<String>options: Vec<String>multiselect: boolreadonly: boolrequired: bool
ComboBox

selected is the list of selected options from options

Fields of ComboBox

selected: Vec<String>options: Vec<String>editable: boolreadonly: boolrequired: bool
Text

User Text Input

Fields of Text

text: Stringreadonly: boolrequired: bool
Unknown

Unknown fields have no state

Trait Implementations

impl Debug for FieldState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.