pub enum Params {
Array(Vec<Value>),
Map(Map<String, Value>),
None(()),
}
Expand description
A Structured value that holds the parameter values to be used during the invocation of the method. This member MAY be omitted.
Parameters can be provided as either an ordered array or a named map, as per the JSON-RPC 2.0 specification.
Variants§
Array(Vec<Value>)
Parameters as an ordered array of values
Map(Map<String, Value>)
Parameters as a map of named values
None(())
No parameters (represented as unit type in Rust)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Params
impl<'de> Deserialize<'de> for Params
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
impl StructuralPartialEq for Params
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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