pub struct Locale {Show 15 fields
pub code: &'static str,
pub name_order: NameOrder,
pub first_names: &'static [&'static str],
pub first_names_common: usize,
pub last_names: &'static [&'static str],
pub last_names_common: usize,
pub domains: &'static [&'static str],
pub domains_common: usize,
pub companies: &'static [&'static str],
pub cities: &'static [City],
pub streets: &'static [&'static str],
pub native_first_names: Option<&'static [&'static str]>,
pub native_last_names: Option<&'static [&'static str]>,
pub native_cities: Option<&'static [City]>,
pub native_streets: Option<&'static [&'static str]>,
}Fields§
§code: &'static str§name_order: NameOrder§first_names: &'static [&'static str]§first_names_common: usizeItems before this index are “common” — selected with ~70% probability. 0 = uniform selection.
last_names: &'static [&'static str]§last_names_common: usize§domains: &'static [&'static str]§domains_common: usizeFirst N domains are personal email providers (gmail-like), rest are corporate.
companies: &'static [&'static str]§cities: &'static [City]§streets: &'static [&'static str]§native_first_names: Option<&'static [&'static str]>§native_last_names: Option<&'static [&'static str]>§native_cities: Option<&'static [City]>§native_streets: Option<&'static [&'static str]>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Locale
impl RefUnwindSafe for Locale
impl Send for Locale
impl Sync for Locale
impl Unpin for Locale
impl UnsafeUnpin for Locale
impl UnwindSafe for Locale
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