pub enum ParamStructure {
ByName,
ByPosition,
Either,
}
Expand description
The expected format of the parameters. As per the JSON-RPC 2.0 specification, the params of a JSON-RPC request object may be an array, object, or either (represented as by-position, by-name, and either respectively). When a method has a paramStructure value of by-name, callers of the method MUST send a JSON-RPC request object whose params field is an object. Further, the key names of the params object MUST be the same as the contentDescriptor.names for the given method. Defaults to “either”.
Variants§
Trait Implementations§
Source§impl Clone for ParamStructure
impl Clone for ParamStructure
Source§fn clone(&self) -> ParamStructure
fn clone(&self) -> ParamStructure
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParamStructure
impl Debug for ParamStructure
Source§impl Default for ParamStructure
impl Default for ParamStructure
Source§fn default() -> ParamStructure
fn default() -> ParamStructure
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParamStructure
impl<'de> Deserialize<'de> for ParamStructure
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
Source§impl Ord for ParamStructure
impl Ord for ParamStructure
Source§fn cmp(&self, other: &ParamStructure) -> Ordering
fn cmp(&self, other: &ParamStructure) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ParamStructure
impl PartialEq for ParamStructure
Source§impl PartialOrd for ParamStructure
impl PartialOrd for ParamStructure
Source§impl Serialize for ParamStructure
impl Serialize for ParamStructure
impl Copy for ParamStructure
impl Eq for ParamStructure
impl StructuralPartialEq for ParamStructure
Auto Trait Implementations§
impl Freeze for ParamStructure
impl RefUnwindSafe for ParamStructure
impl Send for ParamStructure
impl Sync for ParamStructure
impl Unpin for ParamStructure
impl UnwindSafe for ParamStructure
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