pub struct ImportArgs {Show 13 fields
pub input: String,
pub output: String,
pub patched: String,
pub patched_encoding: Option<TextEncoding>,
pub patched_code_page: Option<u32>,
pub patched_archive_encoding: Option<TextEncoding>,
pub patched_archive_code_page: Option<u32>,
pub patched_format: Option<FormatType>,
pub patched_fixed_length: Option<usize>,
pub patched_keep_original: bool,
pub name_csv: Option<String>,
pub replacement_json: Option<String>,
pub warn_when_output_file_not_found: bool,
}
Fields§
§input: String
Input script file or directory
output: String
Text file or directory
patched: String
Patched script file or directory
patched_encoding: Option<TextEncoding>
Patched script encoding
patched_code_page: Option<u32>
Available on Windows only.
Patched script code page
patched_archive_encoding: Option<TextEncoding>
Patched archive filename encoding
patched_archive_code_page: Option<u32>
Available on Windows only.
Patched archive code page
patched_format: Option<FormatType>
Patched script format type
patched_fixed_length: Option<usize>
Fixed length of one line in patched script (for fixed format)
patched_keep_original: bool
Keep original line breaks in patched script (for fixed format)
name_csv: Option<String>
Name table file
replacement_json: Option<String>
Replacement table file
warn_when_output_file_not_found: bool
Trait Implementations§
Source§impl Args for ImportArgs
impl Args for ImportArgs
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 CommandFactory for ImportArgs
impl CommandFactory for ImportArgs
Source§impl Debug for ImportArgs
impl Debug for ImportArgs
Source§impl FromArgMatches for ImportArgs
impl FromArgMatches for ImportArgs
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
.Source§impl Parser for ImportArgs
impl Parser for ImportArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for ImportArgs
impl RefUnwindSafe for ImportArgs
impl Send for ImportArgs
impl Sync for ImportArgs
impl Unpin for ImportArgs
impl UnwindSafe for ImportArgs
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more