pub struct MethodParam {
pub name: String,
pub param_type: Type,
pub required: bool,
pub default_value: Option<Value>,
pub description: Option<String>,
}Expand description
Descriptor for an RPC method parameter.
Fields§
§name: StringParameter name
param_type: TypeParameter type
required: boolWhether this parameter is required
default_value: Option<Value>Default value if not provided
description: Option<String>Human-readable description
Trait Implementations§
Source§impl Clone for MethodParam
impl Clone for MethodParam
Source§fn clone(&self) -> MethodParam
fn clone(&self) -> MethodParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MethodParam
impl Debug for MethodParam
Source§impl<'de> Deserialize<'de> for MethodParam
impl<'de> Deserialize<'de> for MethodParam
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 MethodParam
impl RefUnwindSafe for MethodParam
impl Send for MethodParam
impl Sync for MethodParam
impl Unpin for MethodParam
impl UnsafeUnpin for MethodParam
impl UnwindSafe for MethodParam
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