Struct open_rpc_schema::document::MethodObject
source · pub struct MethodObject {Show 13 fields
pub name: MethodObjectName,
pub description: Option<MethodObjectDescription>,
pub summary: Option<MethodObjectSummary>,
pub servers: Option<Servers>,
pub tags: Option<MethodObjectTags>,
pub param_structure: Option<MethodObjectParamStructure>,
pub params: MethodObjectParams,
pub result: ContentDescriptorOrReference,
pub errors: Option<MethodObjectErrors>,
pub links: Option<MethodObjectLinks>,
pub examples: Option<MethodObjectExamples>,
pub deprecated: Option<MethodObjectDeprecated>,
pub external_docs: Option<ExternalDocumentationObject>,
}Fields§
§name: MethodObjectName§description: Option<MethodObjectDescription>§summary: Option<MethodObjectSummary>§servers: Option<Servers>§param_structure: Option<MethodObjectParamStructure>§params: MethodObjectParams§result: ContentDescriptorOrReference§errors: Option<MethodObjectErrors>§links: Option<MethodObjectLinks>§examples: Option<MethodObjectExamples>§deprecated: Option<MethodObjectDeprecated>§external_docs: Option<ExternalDocumentationObject>Implementations§
source§impl MethodObject
impl MethodObject
pub fn new(name: MethodObjectName, description: Option<Description>) -> Self
Trait Implementations§
source§impl Clone for MethodObject
impl Clone for MethodObject
source§fn clone(&self) -> MethodObject
fn clone(&self) -> MethodObject
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<'de> Deserialize<'de> for MethodObject
impl<'de> Deserialize<'de> for MethodObject
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