pub struct USEnrichmentClient { /* private fields */ }
Implementations§
source§impl USEnrichmentClient
impl USEnrichmentClient
sourcepub fn new(options: Options) -> Result<Self, ParseError>
pub fn new(options: Options) -> Result<Self, ParseError>
Creates a new client with the given options
sourcepub fn new_custom_base_url(
base_url: Url,
options: Options
) -> Result<Self, ParseError>
pub fn new_custom_base_url( base_url: Url, options: Options ) -> Result<Self, ParseError>
Creates a new client with the given options that points to a different url.
source§impl USEnrichmentClient
impl USEnrichmentClient
sourcepub async fn send<R: EnrichmentResponse + DeserializeOwned>(
&self,
lookup: &mut EnrichmentLookup<R>
) -> Result<(), SDKError>
pub async fn send<R: EnrichmentResponse + DeserializeOwned>( &self, lookup: &mut EnrichmentLookup<R> ) -> Result<(), SDKError>
Uses the lookup and the client in order to build a request and send the message to the server.
Auto Trait Implementations§
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