#[non_exhaustive]pub enum FromStringHint {
None,
Number,
Bool,
Datetime,
}Expand description
Per-field opt-in for parsing JSON strings into non-string column
types. Mirrors the value space of FIELD_META_FROM_STRING.
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.
Implementations§
Source§impl FromStringHint
impl FromStringHint
pub fn from_metadata(value: &str) -> Self
Trait Implementations§
Source§impl Clone for FromStringHint
impl Clone for FromStringHint
Source§fn clone(&self) -> FromStringHint
fn clone(&self) -> FromStringHint
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 moreSource§impl Debug for FromStringHint
impl Debug for FromStringHint
Source§impl Default for FromStringHint
impl Default for FromStringHint
Source§fn default() -> FromStringHint
fn default() -> FromStringHint
Returns the “default value” for a type. Read more
Source§impl PartialEq for FromStringHint
impl PartialEq for FromStringHint
Source§fn eq(&self, other: &FromStringHint) -> bool
fn eq(&self, other: &FromStringHint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FromStringHint
impl Eq for FromStringHint
impl StructuralPartialEq for FromStringHint
Auto Trait Implementations§
impl Freeze for FromStringHint
impl RefUnwindSafe for FromStringHint
impl Send for FromStringHint
impl Sync for FromStringHint
impl Unpin for FromStringHint
impl UnsafeUnpin for FromStringHint
impl UnwindSafe for FromStringHint
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