pub enum TypedValue {
}Expand description
Typed value enum supporting all types
Variants§
I8(i8)
I16(i16)
I32(i32)
I64(i64)
I128(i128)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
U128(u128)
U256(U256)
I256(I256)
Bytes(Vec<u8>)
String(String)
Set(Set<String>)
Array(Array<String>)
Implementations§
Source§impl TypedValue
impl TypedValue
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Decode from bytes
Sourcepub fn as_set_mut(&mut self) -> Result<&mut Set<String>>
pub fn as_set_mut(&mut self) -> Result<&mut Set<String>>
Extract as mutable Set
Sourcepub fn as_array_mut(&mut self) -> Result<&mut Array<String>>
pub fn as_array_mut(&mut self) -> Result<&mut Array<String>>
Extract as mutable Array
Trait Implementations§
Source§impl Clone for TypedValue
impl Clone for TypedValue
Source§fn clone(&self) -> TypedValue
fn clone(&self) -> TypedValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypedValue
impl Debug for TypedValue
Source§impl<'de> Deserialize<'de> for TypedValue
impl<'de> Deserialize<'de> for TypedValue
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
Auto Trait Implementations§
impl Freeze for TypedValue
impl RefUnwindSafe for TypedValue
impl Send for TypedValue
impl Sync for TypedValue
impl Unpin for TypedValue
impl UnwindSafe for TypedValue
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