pub enum ModuleValue {
Null,
Bool(bool),
Int(i64),
Float(f64),
String(String),
Bytes(Vec<u8>),
Array(Vec<ModuleValue>),
Map(HashMap<String, ModuleValue>),
}Expand description
Result from a module method invocation.
Variants§
Null
Bool(bool)
Int(i64)
Float(f64)
String(String)
Bytes(Vec<u8>)
Array(Vec<ModuleValue>)
Map(HashMap<String, ModuleValue>)
Trait Implementations§
Source§impl Clone for ModuleValue
impl Clone for ModuleValue
Source§fn clone(&self) -> ModuleValue
fn clone(&self) -> ModuleValue
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 ModuleValue
impl Debug for ModuleValue
Source§impl<'de> Deserialize<'de> for ModuleValue
impl<'de> Deserialize<'de> for ModuleValue
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 ModuleValue
impl RefUnwindSafe for ModuleValue
impl Send for ModuleValue
impl Sync for ModuleValue
impl Unpin for ModuleValue
impl UnsafeUnpin for ModuleValue
impl UnwindSafe for ModuleValue
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