pub struct ModuleArgs {
pub pkg_prefix: Option<String>,
pub pkg_unit: Option<PkgUnit>,
pub output_dir: Option<PathBuf>,
pub no_cache: bool,
pub cache_dir: Option<PathBuf>,
pub module_name: Option<String>,
pub module_name_regex: Option<String>,
}Fields§
§pkg_prefix: Option<String>Default value is defined at cdk_ansible::settings::ModuleSettings
pkg_unit: Option<PkgUnit>Specifies the level at which Cargo packages are created:
- ‘namespace’: Creates a package at the namespace level
- ‘collection’: Creates a package at the collection level
- ‘module’: Creates a package at the module level
- ‘None’: Does not create any packages
Package names follow this pattern:
- namespace: ‘cdkam_
’ - collection: ‘cdkam_
_ ’ - module: ‘cdkam_
’
output_dir: Option<PathBuf>Default value is defined at cdk_ansible::settings::ModuleSettings
no_cache: boolDefault value is defined at cdk_ansible::settings::ModuleSettings
cache_dir: Option<PathBuf>Default value is defined at cdk_ansible::settings::ModuleSettings
module_name: Option<String>Specify the ansible module name. (e.g. ‘ansible.builtin.debug’) If not specified, all modules accessible from your ansible environment will be generated.
module_name_regex: Option<String>Specify the ansible module name regex. (e.g. ‘ansible.builtin..*’) If not specified, all modules accessible from your ansible environment will be generated.
Trait Implementations§
Source§impl Args for ModuleArgs
impl Args for ModuleArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ModuleArgs
impl Clone for ModuleArgs
Source§fn clone(&self) -> ModuleArgs
fn clone(&self) -> ModuleArgs
Returns a copy 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 ModuleArgs
impl Debug for ModuleArgs
Source§impl FromArgMatches for ModuleArgs
impl FromArgMatches for ModuleArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ModuleArgs
impl RefUnwindSafe for ModuleArgs
impl Send for ModuleArgs
impl Sync for ModuleArgs
impl Unpin for ModuleArgs
impl UnwindSafe for ModuleArgs
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