#[repr(C)]pub struct XmtpFfiEnrichedMessage {Show 15 fields
pub id: *mut c_char,
pub group_id: *mut c_char,
pub sender_inbox_id: *mut c_char,
pub sender_installation_id: *mut c_char,
pub sent_at_ns: i64,
pub inserted_at_ns: i64,
pub kind: XmtpFfiMessageKind,
pub delivery_status: XmtpFfiDeliveryStatus,
pub content_type: *mut c_char,
pub fallback_text: *mut c_char,
pub expires_at_ns: i64,
pub num_reactions: i32,
pub num_replies: i32,
pub content_bytes: *mut u8,
pub content_bytes_len: i32,
}Expand description
An enriched (decoded) message exposed to C. Contains metadata + the original encoded content bytes for upper-layer decoding.
Fields§
§id: *mut c_charMessage ID (hex string, owned).
group_id: *mut c_charGroup ID (hex string, owned).
sender_inbox_id: *mut c_charSender inbox ID (owned string).
sender_installation_id: *mut c_charSender installation ID (hex string, owned).
sent_at_ns: i64Sent timestamp in nanoseconds.
inserted_at_ns: i64Inserted-into-DB timestamp in nanoseconds.
kind: XmtpFfiMessageKind§delivery_status: XmtpFfiDeliveryStatus§content_type: *mut c_charContent type ID string (e.g. “xmtp.org/text:1.0”, owned).
fallback_text: *mut c_charFallback text (nullable, owned).
expires_at_ns: i64Expiration timestamp in nanoseconds (0 = no expiration).
num_reactions: i32Number of reactions.
num_replies: i32Number of replies.
content_bytes: *mut u8Raw decrypted content bytes (protobuf-encoded EncodedContent, owned).
content_bytes_len: i32Length of content_bytes. 0 if unavailable.
Trait Implementations§
Source§impl Clone for XmtpFfiEnrichedMessage
impl Clone for XmtpFfiEnrichedMessage
Source§fn clone(&self) -> XmtpFfiEnrichedMessage
fn clone(&self) -> XmtpFfiEnrichedMessage
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 XmtpFfiEnrichedMessage
impl Debug for XmtpFfiEnrichedMessage
Source§impl Default for XmtpFfiEnrichedMessage
impl Default for XmtpFfiEnrichedMessage
Source§impl PartialEq for XmtpFfiEnrichedMessage
impl PartialEq for XmtpFfiEnrichedMessage
impl Copy for XmtpFfiEnrichedMessage
impl Eq for XmtpFfiEnrichedMessage
impl StructuralPartialEq for XmtpFfiEnrichedMessage
Auto Trait Implementations§
impl Freeze for XmtpFfiEnrichedMessage
impl RefUnwindSafe for XmtpFfiEnrichedMessage
impl !Send for XmtpFfiEnrichedMessage
impl !Sync for XmtpFfiEnrichedMessage
impl Unpin for XmtpFfiEnrichedMessage
impl UnsafeUnpin for XmtpFfiEnrichedMessage
impl UnwindSafe for XmtpFfiEnrichedMessage
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