pub struct ExamplePairing {
pub name: String,
pub description: Option<String>,
pub summary: Option<String>,
pub params: Vec<ReferenceOr<Example>>,
pub result: Option<ReferenceOr<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<ReferenceOr<Example>>
REQUIRED Example parameters.
result: Option<ReferenceOr<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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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§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