pub struct PendingMessage {
pub id: String,
pub thread_id: String,
pub text: String,
pub reply_to_id: Option<String>,
pub queued_at: u64,
pub retry_count: u32,
pub status: MessageSendStatus,
pub last_error: Option<String>,
}Expand description
A message queued for sending (offline queue).
Fields§
§id: StringUnique identifier for this pending message.
thread_id: StringTarget thread ID.
text: StringMessage text content.
reply_to_id: Option<String>Optional reply-to message ID.
queued_at: u64When the message was queued (Unix milliseconds).
retry_count: u32Number of retry attempts so far.
status: MessageSendStatusCurrent send status.
last_error: Option<String>Last error message if failed.
Trait Implementations§
Source§impl Clone for PendingMessage
impl Clone for PendingMessage
Source§fn clone(&self) -> PendingMessage
fn clone(&self) -> PendingMessage
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 PendingMessage
impl Debug for PendingMessage
Source§impl<'de> Deserialize<'de> for PendingMessage
impl<'de> Deserialize<'de> for PendingMessage
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 PartialEq for PendingMessage
impl PartialEq for PendingMessage
Source§impl Serialize for PendingMessage
impl Serialize for PendingMessage
impl Eq for PendingMessage
impl StructuralPartialEq for PendingMessage
Auto Trait Implementations§
impl Freeze for PendingMessage
impl RefUnwindSafe for PendingMessage
impl Send for PendingMessage
impl Sync for PendingMessage
impl Unpin for PendingMessage
impl UnsafeUnpin for PendingMessage
impl UnwindSafe for PendingMessage
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