Struct codice_fiscale::PersonData
source · pub struct PersonData {
pub name: String,
pub surname: String,
pub birthdate: String,
pub gender: Gender,
pub place_of_birth: Municipality,
}
Expand description
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
§place_of_birth: Municipality
Belfiore codice for comune (ie E889). You must know it for now; we may provide a database in the future
Trait Implementations§
source§impl Clone for PersonData
impl Clone for PersonData
source§fn clone(&self) -> PersonData
fn clone(&self) -> PersonData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PersonData
impl Debug for PersonData
source§impl PartialEq<PersonData> for PersonData
impl PartialEq<PersonData> for PersonData
source§fn eq(&self, other: &PersonData) -> bool
fn eq(&self, other: &PersonData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.