Enum form_checker::FieldValue
[−]
[src]
pub enum FieldValue { Str(String), I64(i64), }
An enum to represent the primitive value extracted, resulting from applying a checker.
Variants
Str(String)
A str value.
I64(i64)
An integer value as i64.
Methods
impl FieldValue
[src]
fn as_str(&self) -> Option<String>
Extract a str primitive from the FieldValue
.
fn as_i64(&self) -> Option<i64>
Extract an i64 primitive from the FieldValue
Trait Implementations
impl Clone for FieldValue
[src]
fn clone(&self) -> FieldValue
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more