#[non_exhaustive]pub enum Wanted {
Any,
Bool,
Int,
Float,
Str,
Null,
}Available on crate features
json or toml or yaml only.Expand description
The type a field needs a scalar read as.
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.
Any
Whatever the scalar is, as a typeless read sees it.
Bool
A boolean.
Int
An integer.
Float
A floating-point number.
Str
A string.
Null
A null.
Trait Implementations§
impl Copy for Wanted
impl Eq for Wanted
impl StructuralPartialEq for Wanted
Auto Trait Implementations§
impl Forget for Wanted
impl Freeze for Wanted
impl Move for Wanted
impl RefUnwindSafe for Wanted
impl Send for Wanted
impl Sync for Wanted
impl Unpin for Wanted
impl UnsafeUnpin for Wanted
impl UnwindSafe for Wanted
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