pub enum RequestParams {
None,
Array(Vec<Value>),
Object(Map<String, Value>),
}
Expand description
Request parameters
Variants§
None
no parameters provided
Array(Vec<Value>)
An array of JSON values
Object(Map<String, Value>)
a map of JSON values
Trait Implementations§
Source§impl Clone for RequestParams
impl Clone for RequestParams
Source§fn clone(&self) -> RequestParams
fn clone(&self) -> RequestParams
Returns a copy 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 RequestParams
impl Debug for RequestParams
Source§impl<'de> Deserialize<'de> for RequestParams
impl<'de> Deserialize<'de> for RequestParams
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 From<RequestParams> for Value
impl From<RequestParams> for Value
Source§fn from(params: RequestParams) -> Self
fn from(params: RequestParams) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RequestParams
impl PartialEq for RequestParams
Source§impl Serialize for RequestParams
impl Serialize for RequestParams
impl Eq for RequestParams
impl StructuralPartialEq for RequestParams
Auto Trait Implementations§
impl Freeze for RequestParams
impl RefUnwindSafe for RequestParams
impl Send for RequestParams
impl Sync for RequestParams
impl Unpin for RequestParams
impl UnwindSafe for RequestParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes
Size for each variant:
None
: 0 bytesArray
: 32 bytesObject
: 72 bytes