Enum netidx_netproto::value::Value [−][src]
pub enum Value {
}
Variants
U32(u32)
Tuple Fields
0: u32
full 4 byte u32
V32(u32)
Tuple Fields
0: u32
LEB128 varint, 1 - 5 bytes depending on value
I32(i32)
Tuple Fields
0: i32
full 4 byte i32
Z32(i32)
Tuple Fields
0: i32
LEB128 varint zigzag encoded, 1 - 5 bytes depending on abs(value)
U64(u64)
Tuple Fields
0: u64
full 8 byte u64
V64(u64)
Tuple Fields
0: u64
LEB128 varint, 1 - 10 bytes depending on value
I64(i64)
Tuple Fields
0: i64
full 8 byte i64
Z64(i64)
Tuple Fields
0: i64
LEB128 varint zigzag encoded, 1 - 10 bytes depending on abs(value)
F32(f32)
Tuple Fields
0: f32
4 byte ieee754 single precision float
F64(f64)
Tuple Fields
0: f64
8 byte ieee754 double precision float
DateTime(DateTime<Utc>)
UTC timestamp
Duration(Duration)
Tuple Fields
0: Duration
Duration
String(Chars)
Tuple Fields
0: Chars
unicode string, zero copy decode
Bytes(Bytes)
Tuple Fields
0: Bytes
byte array, zero copy decode
True
boolean true
False
boolean false
Null
Empty value
Ok
An explicit ok
Error(Chars)
Tuple Fields
0: Chars
An explicit error
Array(Arc<[Value]>)
An array of values
Implementations
Whatever value is attempt to turn it into the type specified
cast value directly to any type implementing FromValue
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more