pub struct InternalPassport {
pub guid: Guid,
pub name: String,
pub country: String,
pub passport_number: String,
pub issue_date_month: i64,
pub issue_date_day: i64,
pub issue_date_year: i64,
pub expiry_date_month: i64,
pub expiry_date_day: i64,
pub expiry_date_year: i64,
pub metadata: Metadata,
}Fields§
§guid: Guid§name: String§country: String§passport_number: String§issue_date_month: i64§issue_date_day: i64§issue_date_year: i64§expiry_date_month: i64§expiry_date_day: i64§expiry_date_year: i64§metadata: MetadataImplementations§
Source§impl InternalPassport
impl InternalPassport
pub fn from_row(row: &Row<'_>) -> Result<InternalPassport, Error>
Trait Implementations§
Source§impl Clone for InternalPassport
impl Clone for InternalPassport
Source§fn clone(&self) -> InternalPassport
fn clone(&self) -> InternalPassport
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 InternalPassport
impl Debug for InternalPassport
Source§impl Default for InternalPassport
impl Default for InternalPassport
Source§fn default() -> InternalPassport
fn default() -> InternalPassport
Returns the “default value” for a type. Read more
Source§impl From<InternalPassport> for Passport
impl From<InternalPassport> for Passport
Source§fn from(ip: InternalPassport) -> Self
fn from(ip: InternalPassport) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InternalPassport
impl RefUnwindSafe for InternalPassport
impl Send for InternalPassport
impl Sync for InternalPassport
impl Unpin for InternalPassport
impl UnwindSafe for InternalPassport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more