pub struct ParserOptions {
pub data_source: DataSource,
pub correct_incomplete_city_names: bool,
pub verbose: bool,
}
Available on crate feature
experimental
only.Expand description
Options for Parser
パーサーのオプションを指定します。
何も変更しない場合はParserOptions::default()
を使用してください。
§Example
use japanese_address_parser::experimental::parser::{DataSource, Parser, ParserOptions};
// Customize parser
let parser = Parser {
options: ParserOptions {
data_source: DataSource::Geolonia,
correct_incomplete_city_names: false,
verbose: false,
}
};
// Use default options
let parser = Parser {
options: ParserOptions::default()
};
Fields§
§data_source: DataSource
使用する住所データ
correct_incomplete_city_names: bool
入力された住所が不正確で市区町村名を検出できない場合、あいまい検索で市区町村名を検出します
verbose: bool
ログの出力の有無
Trait Implementations§
Source§impl Debug for ParserOptions
impl Debug for ParserOptions
Auto Trait Implementations§
impl Freeze for ParserOptions
impl RefUnwindSafe for ParserOptions
impl Send for ParserOptions
impl Sync for ParserOptions
impl Unpin for ParserOptions
impl UnwindSafe for ParserOptions
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