pub struct MessageInfo {Show 23 fields
pub source: MessageSource,
pub id: String,
pub server_id: i32,
pub type: String,
pub push_name: String,
pub timestamp: DateTime<Utc>,
pub category: MessageCategory,
pub multicast: bool,
pub media_type: String,
pub edit: EditAttribute,
pub bot_info: Option<MsgBotInfo>,
pub meta_info: MsgMetaInfo,
pub verified_name: Option<Box<VerifiedName>>,
pub device_sent_meta: Option<DeviceSentMeta>,
pub ephemeral_expiration: Option<u32>,
pub is_offline: bool,
pub unavailable_request_id: Option<String>,
pub server_timestamp_us: Option<i64>,
pub verified_level: Option<String>,
pub verified_name_serial: Option<i64>,
pub peer_recipient_pn: Option<Jid>,
pub comment_target: Option<MessageKey>,
pub bcl_participants: Vec<Jid>,
}Fields§
§source: MessageSource§id: String§server_id: i32§type: String§push_name: String§timestamp: DateTime<Utc>§category: MessageCategory§multicast: bool§media_type: String§edit: EditAttribute§bot_info: Option<MsgBotInfo>§meta_info: MsgMetaInfo§verified_name: Option<Box<VerifiedName>>Decoded <verified_name> child cert of business senders; the display
name is in .name. Boxed: most messages carry none.
device_sent_meta: Option<DeviceSentMeta>§ephemeral_expiration: Option<u32>Ephemeral duration in seconds, extracted from contextInfo.expiration.
is_offline: boolWhether this message was delivered during offline sync.
Set when this message was recovered via PDO rather than normal decryption. Contains the PDO request message ID.
server_timestamp_us: Option<i64>Server-store timestamp in microseconds (envelope sts attr). Used by
WA Web for read-self watermark ordering across companion devices.
verified_level: Option<String>Envelope verified_level attr (e.g. “unknown”/“low”/“high”). For
business messages this is the server-asserted verification tier; for
regular messages it is absent.
verified_name_serial: Option<i64>Envelope verified_name int attr (business name certificate serial).
Separate from the verified_name child cert bytes already on this
struct.
peer_recipient_pn: Option<Jid>Envelope peer_recipient_pn attr. Present on companion-device
self-synced DM stanzas to identify the peer’s PN (so the receipt
goes to the right routing target).
comment_target: Option<MessageKey>Parent post key when the dispatched message is a decrypted CAG channel
comment (enc_comment_message). The inner Message proto has no slot
for the threading link, so it surfaces here.
bcl_participants: Vec<Jid>Broadcast-contact-list recipients from <participants><to jid> on an
incoming broadcast/status stanza. Populated only for broadcasts; used to
validate a deviceSentMessage.phash (WA Web validateBclHash). Empty
otherwise.
Implementations§
Source§impl MessageInfo
impl MessageInfo
Sourcepub fn is_expired_status(&self) -> bool
pub fn is_expired_status(&self) -> bool
WA Web: expired status messages (>24h) are silently dropped — no retry receipts,
no undecryptable events. Matches WAWebMsgProcessingDecryptionHandler.E().
Trait Implementations§
Source§impl Clone for MessageInfo
impl Clone for MessageInfo
Source§fn clone(&self) -> MessageInfo
fn clone(&self) -> MessageInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessageInfo
impl Debug for MessageInfo
Source§impl Default for MessageInfo
impl Default for MessageInfo
Source§fn default() -> MessageInfo
fn default() -> MessageInfo
Source§impl Serialize for MessageInfo
impl Serialize for MessageInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for MessageInfo
impl RefUnwindSafe for MessageInfo
impl Send for MessageInfo
impl Sync for MessageInfo
impl Unpin for MessageInfo
impl UnsafeUnpin for MessageInfo
impl UnwindSafe for MessageInfo
Blanket Implementations§
Source§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
Source§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read moreSource§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read moreSource§fn aggregate_filter<P>(self, f: P) -> Self::Output
fn aggregate_filter<P>(self, f: P) -> Self::Output
Source§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
&self to an expression for Diesel’s query builder. Read more