pub enum CommandNaming {
Default,
StripGroup,
Custom(fn(&str, &str) -> String),
}Expand description
Strategy for generating CLI command names from operation IDs.
Variants§
Default
Use normalized operation_id as-is (default, backward compatible).
"listPods" under group "Pods" → command "list-pods"
StripGroup
Strip group name from command name for shorter commands.
"listPods" under group "Pods" → command "list"
Custom(fn(&str, &str) -> String)
Custom naming logic.
Arguments: (normalized_op_id, normalized_group) -> command_name
Trait Implementations§
Source§impl Clone for CommandNaming
impl Clone for CommandNaming
Source§fn clone(&self) -> CommandNaming
fn clone(&self) -> CommandNaming
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 CommandNaming
impl Debug for CommandNaming
impl Copy for CommandNaming
Auto Trait Implementations§
impl Freeze for CommandNaming
impl RefUnwindSafe for CommandNaming
impl Send for CommandNaming
impl Sync for CommandNaming
impl Unpin for CommandNaming
impl UnsafeUnpin for CommandNaming
impl UnwindSafe for CommandNaming
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