#[non_exhaustive]pub enum FormValue {
Text(String),
List(Vec<String>),
Rows(Vec<FormValues>),
}Expand description
One key’s value in FormValues, in the shape its control posts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(String)
A scalar control’s value, as typed: a text field’s, a single choice’s option, a toggle’s
true or false, a file field’s stored path.
List(Vec<String>)
A multiple choice’s options. Schema::read keeps each once and
none blank, in the order they posted.
Rows(Vec<FormValues>)
A repeater’s rows, in the order they show, each holding its item’s values.
Implementations§
Trait Implementations§
impl Eq for FormValue
Source§impl From<Vec<FormValues>> for FormValue
impl From<Vec<FormValues>> for FormValue
Source§fn from(rows: Vec<FormValues>) -> Self
fn from(rows: Vec<FormValues>) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for FormValue
Auto Trait Implementations§
impl Forget for FormValue
impl Freeze for FormValue
impl Move for FormValue
impl RefUnwindSafe for FormValue
impl Send for FormValue
impl Sync for FormValue
impl Unpin for FormValue
impl UnsafeUnpin for FormValue
impl UnwindSafe for FormValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.