pub enum FieldScalarValue {
}Expand description
Represents the scalar value extracted from a field.
This enum covers the range of primitive types and simple collections (like Vec<u8>)
that the FieldExtractor can successfully extract.
Variants§
Unit
Unit value (()).
Bool(bool)
Boolean value (bool).
I8(i8)
Signed 8-bit integer (i8).
I16(i16)
Signed 16-bit integer (i16).
I32(i32)
Signed 32-bit integer (i32).
I64(i64)
Signed 64-bit integer (i64).
I128(i128)
Signed 128-bit integer (i128).
U8(u8)
Unsigned 8-bit integer (u8).
U16(u16)
Unsigned 16-bit integer (u16).
U32(u32)
Unsigned 32-bit integer (u32).
U64(u64)
Unsigned 64-bit integer (u64).
U128(u128)
Unsigned 128-bit integer (u128).
F32(f32)
32-bit floating point number (f32).
F64(f64)
64-bit floating point number (f64).
Char(char)
Character (char).
String(String)
String (String).
Bytes(Vec<u8>)
Byte array (Vec<u8>), typically extracted using #[serde(with = "serde_bytes")].
Option(Option<Box<FieldScalarValue>>)
Optional scalar value (Option<T>). Contains None or Some(Box<FieldScalarValue>).
Trait Implementations§
Source§impl Clone for FieldScalarValue
impl Clone for FieldScalarValue
Source§fn clone(&self) -> FieldScalarValue
fn clone(&self) -> FieldScalarValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more