pub struct USEnrichmentClient { /* private fields */ }
Implementations§
Source§impl USEnrichmentClient
impl USEnrichmentClient
Sourcepub fn new(options: Options) -> Result<Self, SmartyError>
pub fn new(options: Options) -> Result<Self, SmartyError>
Creates a new client with the given options
Source§impl USEnrichmentClient
impl USEnrichmentClient
Sourcepub async fn send<R: EnrichmentResponse>(
&self,
lookup: &mut EnrichmentLookup<R>,
) -> Result<(), SmartyError>
pub async fn send<R: EnrichmentResponse>( &self, lookup: &mut EnrichmentLookup<R>, ) -> Result<(), SmartyError>
Uses the lookup and the client in order to build a request and send the message to the server.
Auto Trait Implementations§
impl !Freeze for USEnrichmentClient
impl !RefUnwindSafe for USEnrichmentClient
impl Send for USEnrichmentClient
impl Sync for USEnrichmentClient
impl Unpin for USEnrichmentClient
impl !UnwindSafe for USEnrichmentClient
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