pub struct DeliveryReceiptWebhook {
pub message_id: Option<String>,
pub status: Option<String>,
pub status_code: Option<String>,
pub status_text: Option<String>,
pub error_code: Option<String>,
pub error_text: Option<String>,
pub timestamp: Option<i64>,
pub custom_string: Option<String>,
pub originator: Option<String>,
}Expand description
Body of a delivery receipt webhook. Decode with
crate::webhook::parse_delivery_receipt.
Fields§
§message_id: Option<String>Message id this receipt is for.
status: Option<String>Status string (e.g. "DELIVERED").
status_code: Option<String>Numeric status code.
status_text: Option<String>Human-readable status.
error_code: Option<String>Numeric error code if delivery failed.
error_text: Option<String>Human-readable error.
timestamp: Option<i64>When the carrier reported the result.
custom_string: Option<String>Your reference id.
originator: Option<String>Sender id used for the outbound.
Trait Implementations§
Source§impl Clone for DeliveryReceiptWebhook
impl Clone for DeliveryReceiptWebhook
Source§fn clone(&self) -> DeliveryReceiptWebhook
fn clone(&self) -> DeliveryReceiptWebhook
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeliveryReceiptWebhook
impl Debug for DeliveryReceiptWebhook
Source§impl Default for DeliveryReceiptWebhook
impl Default for DeliveryReceiptWebhook
Source§fn default() -> DeliveryReceiptWebhook
fn default() -> DeliveryReceiptWebhook
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeliveryReceiptWebhook
impl<'de> Deserialize<'de> for DeliveryReceiptWebhook
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DeliveryReceiptWebhook
impl RefUnwindSafe for DeliveryReceiptWebhook
impl Send for DeliveryReceiptWebhook
impl Sync for DeliveryReceiptWebhook
impl Unpin for DeliveryReceiptWebhook
impl UnsafeUnpin for DeliveryReceiptWebhook
impl UnwindSafe for DeliveryReceiptWebhook
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