pub enum ModuleArg {
Null,
Bool(bool),
Int(i64),
Float(f64),
String(String),
Bytes(Vec<u8>),
Array(Vec<ModuleArg>),
Map(HashMap<String, ModuleArg>),
}Expand description
Arguments passed to module method invocations.
Variants§
Null
Bool(bool)
Int(i64)
Float(f64)
String(String)
Bytes(Vec<u8>)
Array(Vec<ModuleArg>)
Map(HashMap<String, ModuleArg>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModuleArg
impl<'de> Deserialize<'de> for ModuleArg
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 ModuleArg
impl RefUnwindSafe for ModuleArg
impl Send for ModuleArg
impl Sync for ModuleArg
impl Unpin for ModuleArg
impl UnsafeUnpin for ModuleArg
impl UnwindSafe for ModuleArg
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