#[non_exhaustive]pub struct CliConfig {
pub name: String,
pub about: String,
pub default_base_url: String,
pub command_naming: CommandNaming,
}Expand description
Configuration for building a CLI from an OpenAPI spec.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRoot command name (e.g. “runpod”, “myapi”)
about: StringRoot command about/description
default_base_url: StringDefault base URL for the API
command_naming: CommandNamingStrategy for generating command names from operation IDs
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CliConfig
impl RefUnwindSafe for CliConfig
impl Send for CliConfig
impl Sync for CliConfig
impl Unpin for CliConfig
impl UnsafeUnpin for CliConfig
impl UnwindSafe for CliConfig
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