pub enum Value<'a> {
Struct(Containers<'a>),
String(String),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
UInt8(u8),
UInt16(u16),
UInt32(u32),
UInt64(u64),
Bool(bool),
Decimal(BigDecimal),
}
Variants§
Struct(Containers<'a>)
String(String)
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
UInt8(u8)
UInt16(u16)
UInt32(u32)
UInt64(u64)
Bool(bool)
Decimal(BigDecimal)
Implementations§
Source§impl<'a> Value<'a>
impl<'a> Value<'a>
pub fn as_struct(&self) -> Option<&Containers<'a>>
pub fn as_string(&self) -> Option<&str>
pub fn as_int8(&self) -> Option<i8>
pub fn as_int16(&self) -> Option<i16>
pub fn as_int32(&self) -> Option<i32>
pub fn as_int64(&self) -> Option<i64>
pub fn as_uint8(&self) -> Option<u8>
pub fn as_uint16(&self) -> Option<u16>
pub fn as_uint32(&self) -> Option<u32>
pub fn as_uint64(&self) -> Option<u64>
pub fn as_bool(&self) -> Option<bool>
pub fn as_decimal(&self) -> Option<&BigDecimal>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Value<'a>
impl<'a> !RefUnwindSafe for Value<'a>
impl<'a> !Send for Value<'a>
impl<'a> !Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> !UnwindSafe for Value<'a>
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