pub struct OperationMapping {
pub name: Option<String>,
pub group: Option<String>,
pub aliases: Vec<String>,
pub hidden: bool,
}Expand description
Mapping overrides for a single API operation.
Fields§
§name: Option<String>Override the subcommand name (replaces the kebab-cased operationId)
group: Option<String>Override the command group (replaces the tag-based group)
aliases: Vec<String>Additional subcommand aliases
Whether this command is hidden from help output
Trait Implementations§
Source§impl Clone for OperationMapping
impl Clone for OperationMapping
Source§fn clone(&self) -> OperationMapping
fn clone(&self) -> OperationMapping
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 OperationMapping
impl Debug for OperationMapping
Source§impl Default for OperationMapping
impl Default for OperationMapping
Source§fn default() -> OperationMapping
fn default() -> OperationMapping
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OperationMapping
impl<'de> Deserialize<'de> for OperationMapping
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 OperationMapping
impl PartialEq for OperationMapping
Source§impl Serialize for OperationMapping
impl Serialize for OperationMapping
impl Eq for OperationMapping
impl StructuralPartialEq for OperationMapping
Auto Trait Implementations§
impl Freeze for OperationMapping
impl RefUnwindSafe for OperationMapping
impl Send for OperationMapping
impl Sync for OperationMapping
impl Unpin for OperationMapping
impl UnsafeUnpin for OperationMapping
impl UnwindSafe for OperationMapping
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.