pub struct EmailDelivery { /* private fields */ }Expand description
Email client
Implementations§
Source§impl EmailDelivery
impl EmailDelivery
Sourcepub async fn new(oci_client: Oci) -> Result<Self>
pub async fn new(oci_client: Oci) -> Result<Self>
Create new Email client
Loads email configuration and caches the submit endpoint.
§Arguments
oci_client- OCI HTTP client
Sourcepub async fn get_email_configuration(
&self,
compartment_id: impl Into<String>,
) -> Result<EmailConfiguration>
pub async fn get_email_configuration( &self, compartment_id: impl Into<String>, ) -> Result<EmailConfiguration>
Get Email Configuration (public API)
§Arguments
compartment_id- Compartment OCID (typically tenancy OCID)
Sourcepub async fn send(&self, email: Email) -> Result<SubmitEmailResponse>
pub async fn send(&self, email: Email) -> Result<SubmitEmailResponse>
Sourcepub async fn list_senders(
&self,
compartment_id: impl Into<String>,
lifecycle_state: Option<&str>,
email_address: Option<&str>,
) -> Result<Vec<SenderSummary>>
pub async fn list_senders( &self, compartment_id: impl Into<String>, lifecycle_state: Option<&str>, email_address: Option<&str>, ) -> Result<Vec<SenderSummary>>
List approved senders
§Arguments
compartment_id- Compartment OCID (required)lifecycle_state- Optional filter by lifecycle stateemail_address- Optional filter by email address
Trait Implementations§
Source§impl Clone for EmailDelivery
impl Clone for EmailDelivery
Source§fn clone(&self) -> EmailDelivery
fn clone(&self) -> EmailDelivery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EmailDelivery
impl !RefUnwindSafe for EmailDelivery
impl Send for EmailDelivery
impl Sync for EmailDelivery
impl Unpin for EmailDelivery
impl !UnwindSafe for EmailDelivery
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