pub struct ImportArgs {Show 19 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 patched_break_words: bool,
pub patched_insert_fullwidth_space_at_line_start: bool,
pub patched_break_with_sentence: bool,
pub patched_no_break_chinese_words: bool,
pub name_csv: Option<String>,
pub replacement_json: Option<String>,
pub warn_when_output_file_not_found: bool,
pub dep_file: Option<String>,
pub jobs: usize,
}Fields§
§input: StringInput script file or directory
output: StringText file or directory
patched: StringPatched script file or directory
patched_encoding: Option<TextEncoding>Patched script encoding
patched_code_page: Option<u32>Patched script code page
patched_archive_encoding: Option<TextEncoding>Patched archive filename encoding
patched_archive_code_page: Option<u32>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: boolKeep original line breaks in patched script (for fixed format)
patched_break_words: boolBreak words in patched script (for fixed format)
patched_insert_fullwidth_space_at_line_start: boolInsert fullwidth space at the start of line in patched script (for fixed format)
patched_break_with_sentence: boolIf a line break occurs in the middle of some symbols, bring the sentence to next line (for fixed format)
patched_no_break_chinese_words: booljieba only.Whether to disable break Chinese words at the end of the line.
name_csv: Option<String>Name table file
replacement_json: Option<String>Replacement table file
warn_when_output_file_not_found: bool§dep_file: Option<String>Output dependency file path. This file will contain a list of all files used during import.
jobs: usizeWorkers count for import scripts in parallel.
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ImportArgs
impl Clone for ImportArgs
Source§fn clone(&self) -> ImportArgs
fn clone(&self) -> ImportArgs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. 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>
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>
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
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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