#[repr(u8)]
pub enum Value {
Void,
Bool(bool),
U64(u64),
I64(i64),
Decimal(Decimal),
Str(String),
Pair(Box<ValueWithId>),
List(List),
}Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
source§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
source§impl From<OffsetDateTime> for Value
impl From<OffsetDateTime> for Value
source§fn from(val: OffsetDateTime) -> Self
fn from(val: OffsetDateTime) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveDateTime> for Value
impl From<PrimitiveDateTime> for Value
source§fn from(val: PrimitiveDateTime) -> Self
fn from(val: PrimitiveDateTime) -> Self
Converts to this type from the input type.
source§impl PartialEq<Value> for Value
impl PartialEq<Value> for Value
source§impl Rapira for Value
impl Rapira for Value
const STATIC_SIZE: Option<usize> = None
source§fn from_slice(slice: &mut &[u8]) -> Result<Self>where
Self: Sized,
fn from_slice(slice: &mut &[u8]) -> Result<Self>where Self: Sized,
this is safe, but not check collections capacity!
recommend use only for safe data, not external data.
source§fn check_bytes(slice: &mut &[u8]) -> Result<()>where
Self: Sized,
fn check_bytes(slice: &mut &[u8]) -> Result<()>where Self: Sized,
check bytes, collections len, check utf-8, NonZero, f32 and others…
source§fn from_slice_unchecked(slice: &mut &[u8]) -> Result<Self>where
Self: Sized,
fn from_slice_unchecked(slice: &mut &[u8]) -> Result<Self>where Self: Sized,
this mean not unsafe, but unchecked
utf-8 strings, NonZero, float numbers not check
source§unsafe fn from_slice_unsafe(slice: &mut &[u8]) -> Result<Self>where
Self: Sized,
unsafe fn from_slice_unsafe(slice: &mut &[u8]) -> Result<Self>where Self: Sized,
Safety Read more