pub struct CachedCommand {Show 19 fields
pub name: String,
pub description: Option<String>,
pub summary: Option<String>,
pub operation_id: String,
pub method: String,
pub path: String,
pub parameters: Vec<CachedParameter>,
pub request_body: Option<CachedRequestBody>,
pub responses: Vec<CachedResponse>,
pub security_requirements: Vec<String>,
pub tags: Vec<String>,
pub deprecated: bool,
pub external_docs_url: Option<String>,
pub examples: Vec<CommandExample>,
pub display_group: Option<String>,
pub display_name: Option<String>,
pub aliases: Vec<String>,
pub hidden: bool,
pub pagination: PaginationInfo,
}Fields§
§name: String§description: Option<String>§summary: Option<String>§operation_id: String§method: String§path: String§parameters: Vec<CachedParameter>§request_body: Option<CachedRequestBody>§responses: Vec<CachedResponse>§security_requirements: Vec<String>Security requirements for this operation (references to security scheme names)
All tags associated with this operation
deprecated: boolWhether this operation is deprecated
external_docs_url: Option<String>External documentation URL if available
examples: Vec<CommandExample>Usage examples for this command (added in v0.1.6)
display_group: Option<String>Display name override for the command group (tag), from command mapping (added in v5)
display_name: Option<String>Display name override for the subcommand (operation), from command mapping (added in v5)
aliases: Vec<String>Additional subcommand aliases from command mapping (added in v5)
Whether this command is hidden from help output, from command mapping (added in v5)
pagination: PaginationInfoPagination configuration detected from the OpenAPI spec (added in v6)
Trait Implementations§
Source§impl Clone for CachedCommand
impl Clone for CachedCommand
Source§fn clone(&self) -> CachedCommand
fn clone(&self) -> CachedCommand
Returns a duplicate 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 CachedCommand
impl Debug for CachedCommand
Source§impl<'de> Deserialize<'de> for CachedCommand
impl<'de> Deserialize<'de> for CachedCommand
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 CachedCommand
impl PartialEq for CachedCommand
Source§impl Serialize for CachedCommand
impl Serialize for CachedCommand
impl Eq for CachedCommand
impl StructuralPartialEq for CachedCommand
Auto Trait Implementations§
impl Freeze for CachedCommand
impl RefUnwindSafe for CachedCommand
impl Send for CachedCommand
impl Sync for CachedCommand
impl Unpin for CachedCommand
impl UnsafeUnpin for CachedCommand
impl UnwindSafe for CachedCommand
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.