pub struct MethodDescriptor {
pub name: Box<str>,
pub return_type: Box<str>,
pub description: Box<str>,
pub parameters: Box<[ParameterDescriptor]>,
}Expand description
An RPC method signature and description.
Fields§
§name: Box<str>The method’s name.
return_type: Box<str>The method’s return type.
description: Box<str>Documentation about what the method does.
parameters: Box<[ParameterDescriptor]>A list of method parameters.
Trait Implementations§
Source§impl Clone for MethodDescriptor
impl Clone for MethodDescriptor
Source§fn clone(&self) -> MethodDescriptor
fn clone(&self) -> MethodDescriptor
Returns a duplicate 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 MethodDescriptor
impl Debug for MethodDescriptor
Source§impl<'de> Deserialize<'de> for MethodDescriptor
impl<'de> Deserialize<'de> for MethodDescriptor
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 Hash for MethodDescriptor
impl Hash for MethodDescriptor
Source§impl Ord for MethodDescriptor
impl Ord for MethodDescriptor
Source§fn cmp(&self, other: &MethodDescriptor) -> Ordering
fn cmp(&self, other: &MethodDescriptor) -> 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 MethodDescriptor
impl PartialEq for MethodDescriptor
Source§impl PartialOrd for MethodDescriptor
impl PartialOrd for MethodDescriptor
Source§impl Serialize for MethodDescriptor
impl Serialize for MethodDescriptor
impl Eq for MethodDescriptor
impl StructuralPartialEq for MethodDescriptor
Auto Trait Implementations§
impl Freeze for MethodDescriptor
impl RefUnwindSafe for MethodDescriptor
impl Send for MethodDescriptor
impl Sync for MethodDescriptor
impl Unpin for MethodDescriptor
impl UnwindSafe for MethodDescriptor
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