Struct idcard::FakeOptions [−][src]
pub struct FakeOptions { /* fields omitted */ }
Options which can be used to configure how a fake ID number is generated.
Implementations
impl FakeOptions
[src]
impl FakeOptions
[src]pub fn default() -> Self
[src]
Returns default options.
pub fn set_min_year(&mut self, year: i32)
[src]
Sets the minimum year(min_year <= max_year <= current).
pub fn set_max_year(&mut self, year: i32)
[src]
Sets the maximum year(min_year <= max_year <= current).
pub fn set_region(&mut self, code: &str)
[src]
Sets the region code, the length must be 2..6.
pub fn set_gender(&mut self, gender: Gender)
[src]
Sets the gender.
Trait Implementations
impl PartialEq<FakeOptions> for FakeOptions
[src]
impl PartialEq<FakeOptions> for FakeOptions
[src]fn eq(&self, other: &FakeOptions) -> bool
[src]
fn ne(&self, other: &FakeOptions) -> bool
[src]
impl PartialOrd<FakeOptions> for FakeOptions
[src]
impl PartialOrd<FakeOptions> for FakeOptions
[src]impl StructuralPartialEq for FakeOptions
[src]
impl StructuralPartialEq for FakeOptions
[src]Auto Trait Implementations
impl RefUnwindSafe for FakeOptions
impl RefUnwindSafe for FakeOptions
impl Send for FakeOptions
impl Send for FakeOptions
impl Sync for FakeOptions
impl Sync for FakeOptions
impl Unpin for FakeOptions
impl Unpin for FakeOptions
impl UnwindSafe for FakeOptions
impl UnwindSafe for FakeOptions