Struct sendblue::models::message::MessageStatusCallback
source · pub struct MessageStatusCallback {Show 14 fields
pub account_email: String,
pub content: String,
pub is_outbound: bool,
pub status: Status,
pub error_code: Option<ErrorCode>,
pub error_message: Option<String>,
pub message_handle: String,
pub date_sent: DateTime<Utc>,
pub date_updated: DateTime<Utc>,
pub from_number: PhoneNumber,
pub number: PhoneNumber,
pub to_number: PhoneNumber,
pub was_downgraded: bool,
pub plan: String,
}
Expand description
Payload for the status callback
Fields§
§account_email: String
The email of the account
content: String
The content of the message
is_outbound: bool
Whether the message is outbound
status: Status
The status of the message
error_code: Option<ErrorCode>
The error code if any (optional)
error_message: Option<String>
The error message if any (optional)
message_handle: String
The handle of the message
date_sent: DateTime<Utc>
The date the message was sent
date_updated: DateTime<Utc>
The date the message was updated
from_number: PhoneNumber
The sender’s phone number
number: PhoneNumber
The recipient’s phone number
to_number: PhoneNumber
The recipient’s phone number (alternative)
was_downgraded: bool
Whether the message was downgraded
plan: String
The plan associated with the message
Trait Implementations§
source§impl Clone for MessageStatusCallback
impl Clone for MessageStatusCallback
source§fn clone(&self) -> MessageStatusCallback
fn clone(&self) -> MessageStatusCallback
Returns a copy 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 moresource§impl Debug for MessageStatusCallback
impl Debug for MessageStatusCallback
source§impl<'de> Deserialize<'de> for MessageStatusCallback
impl<'de> Deserialize<'de> for MessageStatusCallback
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 MessageStatusCallback
impl RefUnwindSafe for MessageStatusCallback
impl Send for MessageStatusCallback
impl Sync for MessageStatusCallback
impl Unpin for MessageStatusCallback
impl UnwindSafe for MessageStatusCallback
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more