Struct mailjet_rs::Client
source · pub struct Client {
pub keys: Credentials,
pub encoded_credentials: String,
/* private fields */
}
Expand description
Mailjet’s Email API uses the API keys provided by Mailjet for your account here.
These are used to create an instance of the Client
as follows:
ⓘ
let client = Client::new(
SendAPIVersion::V3,
"public_key",
"private_key",
);
Fields§
§keys: Credentials
§encoded_credentials: String
Implementations§
source§impl Client
impl Client
sourcepub fn new(
send_api_version: SendAPIVersion,
public_key: &str,
private_key: &str
) -> Self
pub fn new(
send_api_version: SendAPIVersion,
public_key: &str,
private_key: &str
) -> Self
Creates an authenticated Mailjet client by using the provided
public_key
and private_key