pub struct AppContextArgs {Show 15 fields
pub verbose: u8,
pub quiet: u8,
pub json: bool,
pub format: String,
pub dry_run: bool,
pub output_color: String,
pub cwd: PathBuf,
pub ci: bool,
pub non_interactive: bool,
pub auto_yes: bool,
pub force: bool,
pub config_path: Option<PathBuf>,
pub registry: Option<String>,
pub registry_ref: Option<String>,
pub registry_section: Option<String>,
}Expand description
All inputs needed to build an application context from CLI arguments.
Fields§
§verbose: u8§quiet: u8§json: bool§format: String§dry_run: bool§output_color: String§cwd: PathBuf§ci: bool§non_interactive: bool§auto_yes: bool§force: bool§config_path: Option<PathBuf>§registry: Option<String>§registry_ref: Option<String>§registry_section: Option<String>Trait Implementations§
Source§impl From<GlobalArgs> for AppContextArgs
impl From<GlobalArgs> for AppContextArgs
Source§fn from(args: GlobalArgs) -> Self
fn from(args: GlobalArgs) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AppContextArgs
impl RefUnwindSafe for AppContextArgs
impl Send for AppContextArgs
impl Sync for AppContextArgs
impl Unpin for AppContextArgs
impl UnsafeUnpin for AppContextArgs
impl UnwindSafe for AppContextArgs
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