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: StringBirthdate must be a valid YYYY-MM-AA date
gender: Gender§place_of_birth: MunicipalityBelfiore 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 duplicate 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 for PersonData
impl PartialEq for PersonData
impl StructuralPartialEq for PersonData
Auto Trait Implementations§
impl Freeze for PersonData
impl RefUnwindSafe for PersonData
impl Send for PersonData
impl Sync for PersonData
impl Unpin for PersonData
impl UnwindSafe for PersonData
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