pub struct Client {
pub keys: Credentials,
pub encoded_credentials: String,
/* private fields */
}Expand description
Fields§
§keys: Credentials§encoded_credentials: StringImplementations§
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
pub async fn send( &self, messages: impl Payload, ) -> Result<MailjetResponse, MailjetError>
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin 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