pub struct OwnerRecord {
pub id: OwnerId,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub email: Option<Email>,
pub cell_phone: Option<String>,
pub unknown: BTreeMap<String, Value>,
}Expand description
Gingr owner response DTO before customer-domain mapping.
Fields§
§id: OwnerIdProvider record identifier observed in the Gingr payload.
first_name: Option<String>Owner first name observed in Gingr and used only as provider-sourced contact context.
last_name: Option<String>Owner last name observed in Gingr and used only as provider-sourced contact context.
email: Option<Email>Email address observed from Gingr and carried as customer-contact evidence.
cell_phone: Option<String>Owner cell-phone value observed in Gingr and carried as contact evidence.
unknown: BTreeMap<String, Value>Extra provider fields preserved for audit and future mapping without becoming validated NVA facts.
Implementations§
Source§impl OwnerRecord
impl OwnerRecord
Sourcepub fn display_name(&self) -> Option<String>
pub fn display_name(&self) -> Option<String>
Builds a readable owner name from first and last name fields.
Trait Implementations§
Source§impl Clone for OwnerRecord
impl Clone for OwnerRecord
Source§fn clone(&self) -> OwnerRecord
fn clone(&self) -> OwnerRecord
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 OwnerRecord
impl Debug for OwnerRecord
Source§impl<'de> Deserialize<'de> for OwnerRecord
impl<'de> Deserialize<'de> for OwnerRecord
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 OwnerRecord
impl PartialEq for OwnerRecord
Source§impl Serialize for OwnerRecord
impl Serialize for OwnerRecord
impl StructuralPartialEq for OwnerRecord
Auto Trait Implementations§
impl Freeze for OwnerRecord
impl RefUnwindSafe for OwnerRecord
impl Send for OwnerRecord
impl Sync for OwnerRecord
impl Unpin for OwnerRecord
impl UnsafeUnpin for OwnerRecord
impl UnwindSafe for OwnerRecord
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