[][src]Struct mailgun_sdk::Client

pub struct Client { /* fields omitted */ }

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]

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]

View all bounces.

API Documentation

pub fn get_complaints(
    &self,
    params: GetComplaintsParamList
) -> Result<GetComplaintsResponse, ClientError>
[src]

View all complaints.

API Documentation

pub fn get_events(
    &self,
    params: GetEventsParamList
) -> Result<GetEventsResponse, ClientError>
[src]

View all events.

API Documentation

pub fn get_stats(
    &self,
    params: GetStatsParamList
) -> Result<GetStatsResponse, ClientError>
[src]

View all stats.

API Documentation

pub fn get_unsubscribes(
    &self,
    params: GetUnsubscribesParamList
) -> Result<GetUnsubscribesResponse, ClientError>
[src]

View all unsubscribes.

API Documentation

pub fn get_whitelists(
    &self,
    params: GetWhitelistsParamList
) -> Result<GetWhitelistsResponse, ClientError>
[src]

View all whitelist records.

API Documentation

pub fn send_message(
    &self,
    params: SendMessageParamList<String>
) -> Result<SendMessageResponse, ClientError>
[src]

Trait Implementations

impl Debug for Client[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.