mailjet-rs 0.2.2

Mailjet API wrapper for Rust
Documentation
1
2
3
4
5
6
7
8
9
/// Every `struct` that is sent through the Mailjet's SendAPI must
/// implement `Payload`
///
/// This `trait` ensures that the `struct` is capable of being serialized
/// into a JSON object which is supported by the Mailjet API
pub trait Payload {
    /// Creates the JSON representation of `self` consumed by Mailjet's API
    fn to_json(&self) -> String;
}