[−][src]Struct mailgun_sdk::Client
Implementations
impl Client
[src]
pub fn new(api_key: &str, domain: &str) -> Self
[src]
Create a new client.
pub fn call<T>(&self, url: &str) -> Result<T, ClientError> where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
Make an API call from a URL.
This will primarily be used with pagination URLs.
pub fn get_bounces(
&self,
params: GetBouncesParamList
) -> Result<GetBouncesResponse, ClientError>
[src]
&self,
params: GetBouncesParamList
) -> Result<GetBouncesResponse, ClientError>
View all bounces.
pub fn get_complaints(
&self,
params: GetComplaintsParamList
) -> Result<GetComplaintsResponse, ClientError>
[src]
&self,
params: GetComplaintsParamList
) -> Result<GetComplaintsResponse, ClientError>
View all complaints.
pub fn get_events(
&self,
params: GetEventsParamList
) -> Result<GetEventsResponse, ClientError>
[src]
&self,
params: GetEventsParamList
) -> Result<GetEventsResponse, ClientError>
View all events.
pub fn get_stats(
&self,
params: GetStatsParamList
) -> Result<GetStatsResponse, ClientError>
[src]
&self,
params: GetStatsParamList
) -> Result<GetStatsResponse, ClientError>
View all stats.
pub fn get_unsubscribes(
&self,
params: GetUnsubscribesParamList
) -> Result<GetUnsubscribesResponse, ClientError>
[src]
&self,
params: GetUnsubscribesParamList
) -> Result<GetUnsubscribesResponse, ClientError>
View all unsubscribes.
pub fn get_whitelists(
&self,
params: GetWhitelistsParamList
) -> Result<GetWhitelistsResponse, ClientError>
[src]
&self,
params: GetWhitelistsParamList
) -> Result<GetWhitelistsResponse, ClientError>
View all whitelist records.
pub fn send_message(
&self,
params: SendMessageParamList<String>
) -> Result<SendMessageResponse, ClientError>
[src]
&self,
params: SendMessageParamList<String>
) -> Result<SendMessageResponse, ClientError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,