pub struct PersonalIdentification {
pub document_type: Option<DocumentType>,
pub number: Option<i64>,
}
Expand description
Documents for personal identification, such as RG, CPF, CNH
Fields§
§document_type: Option<DocumentType>
§number: Option<i64>
Implementations§
Source§impl PersonalIdentification
impl PersonalIdentification
pub fn new(document_type: DocumentType, document_number: i64) -> Self
Trait Implementations§
Source§impl Clone for PersonalIdentification
impl Clone for PersonalIdentification
Source§fn clone(&self) -> PersonalIdentification
fn clone(&self) -> PersonalIdentification
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 PersonalIdentification
impl Debug for PersonalIdentification
Source§impl Default for PersonalIdentification
impl Default for PersonalIdentification
Source§fn default() -> PersonalIdentification
fn default() -> PersonalIdentification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersonalIdentification
impl<'de> Deserialize<'de> for PersonalIdentification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PersonalIdentification
impl PartialEq for PersonalIdentification
Source§impl Serialize for PersonalIdentification
impl Serialize for PersonalIdentification
impl StructuralPartialEq for PersonalIdentification
Auto Trait Implementations§
impl Freeze for PersonalIdentification
impl RefUnwindSafe for PersonalIdentification
impl Send for PersonalIdentification
impl Sync for PersonalIdentification
impl Unpin for PersonalIdentification
impl UnwindSafe for PersonalIdentification
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