pub struct SmsStoredMessage {
pub message_id: i64,
pub phone_number: String,
pub message_content: String,
pub message_reference: Option<u8>,
pub is_outgoing: bool,
pub status: String,
pub created_at: Option<u32>,
pub completed_at: Option<u32>,
}
Expand description
Represents a stored SMS message from the database.
Fields§
§message_id: i64
Unique identifier for the message.
phone_number: String
The phone number associated with this message.
message_content: String
The actual text content of the message.
message_reference: Option<u8>
Optional reference number for message tracking. This is assigned by the modem and is only present for outgoing messages.
is_outgoing: bool
Whether this message was sent (true) or received (false).
status: String
Current status of the message (e.g., “sent”, “delivered”, “failed”).
created_at: Option<u32>
Unix timestamp when the message was created.
completed_at: Option<u32>
Optional Unix timestamp when the message was completed/delivered.
Trait Implementations§
Source§impl Clone for SmsStoredMessage
impl Clone for SmsStoredMessage
Source§fn clone(&self) -> SmsStoredMessage
fn clone(&self) -> SmsStoredMessage
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 moreSource§impl Debug for SmsStoredMessage
impl Debug for SmsStoredMessage
Source§impl<'de> Deserialize<'de> for SmsStoredMessage
impl<'de> Deserialize<'de> for SmsStoredMessage
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
Source§impl From<(HttpOutgoingSmsMessage, HttpSmsSendResponse)> for SmsStoredMessage
Combine an outgoing message and send response into a dummy SmsStoredMessage.
impl From<(HttpOutgoingSmsMessage, HttpSmsSendResponse)> for SmsStoredMessage
Combine an outgoing message and send response into a dummy SmsStoredMessage.
Source§fn from(
value: (HttpOutgoingSmsMessage, HttpSmsSendResponse),
) -> SmsStoredMessage
fn from( value: (HttpOutgoingSmsMessage, HttpSmsSendResponse), ) -> SmsStoredMessage
Converts to this type from the input type.
Source§impl PartialEq for SmsStoredMessage
impl PartialEq for SmsStoredMessage
Source§impl Serialize for SmsStoredMessage
impl Serialize for SmsStoredMessage
impl StructuralPartialEq for SmsStoredMessage
Auto Trait Implementations§
impl Freeze for SmsStoredMessage
impl RefUnwindSafe for SmsStoredMessage
impl Send for SmsStoredMessage
impl Sync for SmsStoredMessage
impl Unpin for SmsStoredMessage
impl UnwindSafe for SmsStoredMessage
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