pub struct Cli {
pub command: String,
pub source: PathBuf,
pub source_type: Option<String>,
pub target: Option<PathBuf>,
pub target_type: Option<String>,
pub filter: Option<String>,
pub duplicates: bool,
pub output: PathBuf,
pub business: bool,
pub alternate: Option<PathBuf>,
pub alternate_type: Option<String>,
}Expand description
The Cli struct provides the command-line interface for the address library.
Fields§
§command: StringThe command field specifies the command for the program to run. Currently accepts
‘compare’, ‘drift’, ‘filter’, ‘save’, ‘orphan_streets’ and ‘lexisnexis’ as values.
- filter
- takes
crate::MatchRecordsas input - takes
crate::BusinessMatchRecordswith the-bflag
- takes
source: PathBufThe source field specifies the path the source address file.
source_type: Option<String>The source_type field contains a designator for the address source. Currently accepts
‘grants_pass’ and ‘josephine_county’ as values.
target: Option<PathBuf>The target field specifies the path the target address file.
target_type: Option<String>The target_type field contains a designator for the address target. Currently accepts
‘grants_pass’ and ‘josephine_county’ as values.
filter: Option<String>The filter field contains a value to filter the target data. Currently accepts
missing, divergent, matching, subaddress, floor, building and status as
values.
duplicates: boolThe duplicates flag instructs the program to search for duplicate addresses.
output: PathBufThe output field specifies the path for the output file.
business: boolThe business flag indicates the source addresses are from business licenses.
alternate: Option<PathBuf>The alternate field specifies an alternate target path for addresses.
alternate_type: Option<String>The alternate_type field contains a designator for the target addresses. Currently
accepts ‘grants_pass’ and ‘josephine_county’.
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
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 CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
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 Cli
impl Parser for Cli
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 Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnwindSafe for Cli
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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