pub struct MergeArgs {
pub file: Option<PathBuf>,
pub json: Option<String>,
pub yaml: Option<String>,
pub encoding: Option<Encoding>,
pub template_vars: Vec<TemplateVar>,
pub output: Option<PathBuf>,
pub output_format: Option<Encoding>,
pub working_directory: Option<PathBuf>,
}Fields§
§file: Option<PathBuf>The filename of the main template file
json: Option<String>The template as json
yaml: Option<String>The template as yaml
encoding: Option<Encoding>The template encoding (defaults to the file extension)
template_vars: Vec<TemplateVar>Template variables
output: Option<PathBuf>Output file path (if not specified, the result will print to stdout)
output_format: Option<Encoding>Output encoding (default is json)
working_directory: Option<PathBuf>Paths in the template will be resolved relative to this directory (defaults to cwd)
Implementations§
Source§impl MergeArgs
impl MergeArgs
pub fn working_dir(&self) -> PathBuf
pub fn relative_path(&self, path: &PathBuf) -> PathBuf
Trait Implementations§
Source§impl Args for MergeArgs
impl Args for MergeArgs
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 FromArgMatches for MergeArgs
impl FromArgMatches for MergeArgs
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 MergeArgs
impl RefUnwindSafe for MergeArgs
impl Send for MergeArgs
impl Sync for MergeArgs
impl Unpin for MergeArgs
impl UnwindSafe for MergeArgs
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