Struct codice_fiscale::PersonData [−][src]
pub struct PersonData { pub name: String, pub surname: String, pub birthdate: String, pub gender: Gender, pub belfiore: String, }
PersonData struct to pass to new() constructor for calculation of codice fiscale
Fields
name: String
surname: String
birthdate: String
Birthdate must be a valid YYYY-MM-AA date
gender: Gender
belfiore: String
Belfiore codice for comune (ie E889). You must know it for now; we may provide a database in the future
Trait Implementations
impl Debug for PersonData
[src]
impl Debug for PersonData
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for PersonData
[src]
impl Clone for PersonData
fn clone(&self) -> PersonData
[src]
fn clone(&self) -> PersonData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for PersonData
[src]
impl PartialEq for PersonData
fn eq(&self, other: &PersonData) -> bool
[src]
fn eq(&self, other: &PersonData) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PersonData) -> bool
[src]
fn ne(&self, other: &PersonData) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for PersonData
impl Send for PersonData
impl Sync for PersonData
impl Sync for PersonData