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: Stringsurname: Stringbirthdate: StringBirthdate must be a valid YYYY-MM-AA date
gender: Genderplace_of_birth: MunicipalityBelfiore codice for comune (ie E889). You must know it for now; we may provide a database in the future
Trait Implementations
sourceimpl Clone for PersonData
impl Clone for PersonData
sourcefn clone(&self) -> PersonData
fn clone(&self) -> PersonData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PersonData
impl Debug for PersonData
sourceimpl PartialEq<PersonData> for PersonData
impl PartialEq<PersonData> for PersonData
sourcefn eq(&self, other: &PersonData) -> bool
fn eq(&self, other: &PersonData) -> bool
impl StructuralPartialEq for PersonData
Auto Trait Implementations
impl RefUnwindSafe for PersonData
impl Send for PersonData
impl Sync for PersonData
impl Unpin for PersonData
impl UnwindSafe for PersonData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more