pub struct PersonData { /* private fields */ }Implementations§
Source§impl PersonData
impl PersonData
pub fn new( name: String, surname: String, birthdate: NaiveDate, gender: Gender, place_of_birth: String, ) -> Result<PersonData, PersonDataError>
pub fn name(&self) -> String
pub fn surname(&self) -> String
pub fn gender(&self) -> Gender
pub fn birthdate(&self) -> NaiveDate
pub fn birth_place(&self) -> String
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 Display for PersonData
impl Display for PersonData
Source§impl PartialEq for PersonData
impl PartialEq for PersonData
impl Eq 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