pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
Sourcepub fn call<T>(&self, url: &str) -> Result<T, ClientError>where
T: DeserializeOwned,
pub fn call<T>(&self, url: &str) -> Result<T, ClientError>where
T: DeserializeOwned,
Make an API call from a URL.
This will primarily be used with pagination URLs.
Sourcepub fn get_bounces(
&self,
params: GetBouncesParamList,
) -> Result<GetBouncesResponse, ClientError>
pub fn get_bounces( &self, params: GetBouncesParamList, ) -> Result<GetBouncesResponse, ClientError>
View all bounces.
Sourcepub fn get_complaints(
&self,
params: GetComplaintsParamList,
) -> Result<GetComplaintsResponse, ClientError>
pub fn get_complaints( &self, params: GetComplaintsParamList, ) -> Result<GetComplaintsResponse, ClientError>
View all complaints.
Sourcepub fn get_events(
&self,
params: GetEventsParamList<'_>,
) -> Result<GetEventsResponse, ClientError>
pub fn get_events( &self, params: GetEventsParamList<'_>, ) -> Result<GetEventsResponse, ClientError>
View all events.
Sourcepub fn get_stats(
&self,
params: GetStatsParamList<'_>,
) -> Result<GetStatsResponse, ClientError>
pub fn get_stats( &self, params: GetStatsParamList<'_>, ) -> Result<GetStatsResponse, ClientError>
View all stats.
Sourcepub fn get_unsubscribes(
&self,
params: GetUnsubscribesParamList,
) -> Result<GetUnsubscribesResponse, ClientError>
pub fn get_unsubscribes( &self, params: GetUnsubscribesParamList, ) -> Result<GetUnsubscribesResponse, ClientError>
View all unsubscribes.
Sourcepub fn get_whitelists(
&self,
params: GetWhitelistsParamList,
) -> Result<GetWhitelistsResponse, ClientError>
pub fn get_whitelists( &self, params: GetWhitelistsParamList, ) -> Result<GetWhitelistsResponse, ClientError>
View all whitelist records.
pub fn send_message( &self, params: SendMessageParamList<'_, String>, ) -> Result<SendMessageResponse, ClientError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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