Struct openrpc_types::resolved::ExamplePairing
source · pub struct ExamplePairing {
pub name: String,
pub description: Option<String>,
pub summary: Option<String>,
pub params: Vec<Example>,
pub result: Option<Example>,
pub extensions: SpecificationExtensions,
}
Expand description
The Example Pairing object consists of a set of example params and result. The result is what you can expect from the JSON-RPC service given the exact params.
Fields§
§name: String
REQUIRED Name for the example pairing.
description: Option<String>
A verbose explanation of the example pairing.
summary: Option<String>
Short description for the example pairing.
params: Vec<Example>
REQUIRED Example parameters.
result: Option<Example>
Example result. When undefined, the example pairing represents usage of the method as a notification.
extensions: SpecificationExtensions
Trait Implementations§
source§impl Clone for ExamplePairing
impl Clone for ExamplePairing
source§fn clone(&self) -> ExamplePairing
fn clone(&self) -> ExamplePairing
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 ExamplePairing
impl Debug for ExamplePairing
source§impl Default for ExamplePairing
impl Default for ExamplePairing
source§fn default() -> ExamplePairing
fn default() -> ExamplePairing
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExamplePairing
impl<'de> Deserialize<'de> for ExamplePairing
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 PartialEq for ExamplePairing
impl PartialEq for ExamplePairing
source§fn eq(&self, other: &ExamplePairing) -> bool
fn eq(&self, other: &ExamplePairing) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExamplePairing
impl Serialize for ExamplePairing
impl StructuralPartialEq for ExamplePairing
Auto Trait Implementations§
impl Freeze for ExamplePairing
impl RefUnwindSafe for ExamplePairing
impl Send for ExamplePairing
impl Sync for ExamplePairing
impl Unpin for ExamplePairing
impl UnwindSafe for ExamplePairing
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
)