pub struct CommandInfo {
pub name: String,
pub method: String,
pub path: String,
pub description: Option<String>,
pub summary: Option<String>,
pub operation_id: String,
pub parameters: Vec<ParameterInfo>,
pub request_body: Option<RequestBodyInfo>,
pub security_requirements: Vec<String>,
pub tags: Vec<String>,
pub deprecated: bool,
pub external_docs_url: Option<String>,
}Fields§
§name: StringCommand name (kebab-case operation ID)
method: StringHTTP method
path: StringAPI path with parameters
description: Option<String>Operation description
summary: Option<String>Operation summary
operation_id: StringOperation ID from the OpenAPI spec
parameters: Vec<ParameterInfo>Parameters for this operation
request_body: Option<RequestBodyInfo>Request body information if applicable
security_requirements: Vec<String>Security requirements for this operation
Tags associated with this operation
deprecated: boolWhether this operation is deprecated
external_docs_url: Option<String>External documentation URL
Trait Implementations§
Source§impl Debug for CommandInfo
impl Debug for CommandInfo
Source§impl<'de> Deserialize<'de> for CommandInfo
impl<'de> Deserialize<'de> for CommandInfo
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 CommandInfo
impl RefUnwindSafe for CommandInfo
impl Send for CommandInfo
impl Sync for CommandInfo
impl Unpin for CommandInfo
impl UnwindSafe for CommandInfo
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