pub struct MessageState {
pub id: String,
pub device_id: String,
pub state: ProcessingState,
pub is_hashed: bool,
pub is_encrypted: bool,
pub recipients: Vec<RecipientState>,
pub states: HashMap<String, DateTime<Utc>>,
pub text_message: Option<TextMessage>,
pub data_message: Option<DataMessage>,
pub mms_message: Option<MmsMessage>,
pub hashed_message: Option<HashedMessage>,
}Expand description
The current state of a sent message.
Fields§
§id: StringMessage ID.
device_id: StringDevice ID that processed the message.
state: ProcessingStateCurrent processing state.
is_hashed: boolWhether the message content is hashed.
is_encrypted: boolWhether the message content is encrypted.
recipients: Vec<RecipientState>Per-recipient delivery states.
states: HashMap<String, DateTime<Utc>>History of state transitions.
text_message: Option<TextMessage>Text message content (present when includeContent=true).
data_message: Option<DataMessage>Data message content (present when includeContent=true).
mms_message: Option<MmsMessage>MMS message content (present when includeContent=true).
hashed_message: Option<HashedMessage>Hashed message reference (present when is_hashed=true).
Implementations§
Trait Implementations§
Source§impl Clone for MessageState
impl Clone for MessageState
Source§fn clone(&self) -> MessageState
fn clone(&self) -> MessageState
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 MessageState
impl Debug for MessageState
Source§impl<'de> Deserialize<'de> for MessageState
impl<'de> Deserialize<'de> for MessageState
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 MessageState
impl RefUnwindSafe for MessageState
impl Send for MessageState
impl Sync for MessageState
impl Unpin for MessageState
impl UnsafeUnpin for MessageState
impl UnwindSafe for MessageState
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