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 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<'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
Auto Trait Implementations§
impl Freeze for MethodObject
impl RefUnwindSafe for MethodObject
impl Send for MethodObject
impl Sync for MethodObject
impl Unpin for MethodObject
impl UnwindSafe for MethodObject
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