pub struct Customer {Show 18 fields
pub id: String,
pub agent_did: String,
pub schema_type: SchemaType,
pub given_name: Option<String>,
pub family_name: Option<String>,
pub display_name: Option<String>,
pub legal_name: Option<String>,
pub lei_code: Option<String>,
pub mcc_code: Option<String>,
pub address_country: Option<String>,
pub address_locality: Option<String>,
pub postal_code: Option<String>,
pub street_address: Option<String>,
pub profile: Value,
pub ivms101_data: Option<Value>,
pub verified_at: Option<String>,
pub created_at: String,
pub updated_at: String,
}Fields§
§id: String§agent_did: String§schema_type: SchemaType§given_name: Option<String>§family_name: Option<String>§display_name: Option<String>§legal_name: Option<String>§lei_code: Option<String>§mcc_code: Option<String>§address_country: Option<String>§address_locality: Option<String>§postal_code: Option<String>§street_address: Option<String>§profile: Value§ivms101_data: Option<Value>§verified_at: Option<String>§created_at: String§updated_at: StringImplementations§
Source§impl Customer
impl Customer
Sourcepub fn generate_name_hash(&self) -> Option<String>
pub fn generate_name_hash(&self) -> Option<String>
Generate a name hash based on the customer’s name
Sourcepub fn add_name_hash_to_profile(&mut self)
pub fn add_name_hash_to_profile(&mut self)
Add name hash to the profile metadata
Sourcepub fn get_name_hash(&self) -> Option<String>
pub fn get_name_hash(&self) -> Option<String>
Get name hash from profile if present
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Customer
impl<'de> Deserialize<'de> for Customer
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 NameHashable for Customer
impl NameHashable for Customer
Auto Trait Implementations§
impl Freeze for Customer
impl RefUnwindSafe for Customer
impl Send for Customer
impl Sync for Customer
impl Unpin for Customer
impl UnsafeUnpin for Customer
impl UnwindSafe for Customer
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more