Struct oc2_hlapi::types::MethodDescriptor
source · 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 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 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§fn eq(&self, other: &MethodDescriptor) -> bool
fn eq(&self, other: &MethodDescriptor) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for MethodDescriptor
impl PartialOrd for MethodDescriptor
source§fn partial_cmp(&self, other: &MethodDescriptor) -> Option<Ordering>
fn partial_cmp(&self, other: &MethodDescriptor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)