pub struct CustomerManager { /* private fields */ }Expand description
Customer manager handles all customer-related operations
Implementations§
Source§impl CustomerManager
impl CustomerManager
Sourcepub fn generate_name_hash_from_ivms101(&self, person: &Person) -> Option<String>
pub fn generate_name_hash_from_ivms101(&self, person: &Person) -> Option<String>
Generate name hash from IVMS101 Person data using TAIP-12 standard
Sourcepub fn get_storage(&self) -> &Arc<Storage>
pub fn get_storage(&self) -> &Arc<Storage>
Get a reference to the storage
Sourcepub async fn extract_customer_from_party(
&self,
party: &Party,
agent_did: &str,
_role: &str,
) -> Result<String>
pub async fn extract_customer_from_party( &self, party: &Party, agent_did: &str, _role: &str, ) -> Result<String>
Extract and create/update customer from a Party object
Sourcepub async fn update_customer_profile(
&self,
customer_id: &str,
profile_data: Value,
) -> Result<()>
pub async fn update_customer_profile( &self, customer_id: &str, profile_data: Value, ) -> Result<()>
Update customer with schema.org data
Sourcepub async fn generate_ivms101_data(&self, customer_id: &str) -> Result<Value>
pub async fn generate_ivms101_data(&self, customer_id: &str) -> Result<Value>
Generate IVMS101 data from customer profile
Auto Trait Implementations§
impl Freeze for CustomerManager
impl !RefUnwindSafe for CustomerManager
impl Send for CustomerManager
impl Sync for CustomerManager
impl Unpin for CustomerManager
impl UnsafeUnpin for CustomerManager
impl !UnwindSafe for CustomerManager
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> 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