Skip to main content

XmtpFfiListMessagesOptions

Struct XmtpFfiListMessagesOptions 

Source
#[repr(C)]
pub struct XmtpFfiListMessagesOptions {
Show 16 fields pub sent_after_ns: i64, pub sent_before_ns: i64, pub inserted_after_ns: i64, pub inserted_before_ns: i64, pub limit: i64, pub delivery_status: i32, pub kind: i32, pub direction: i32, pub sort_by: i32, pub content_types: *const i32, pub content_types_count: i32, pub exclude_content_types: *const i32, pub exclude_content_types_count: i32, pub exclude_sender_inbox_ids: *const *const c_char, pub exclude_sender_inbox_ids_count: i32, pub exclude_disappearing: i32,
}
Expand description

Options for listing messages.

Fields§

§sent_after_ns: i64

Only messages sent after this timestamp (ns). 0 = no filter.

§sent_before_ns: i64

Only messages sent before this timestamp (ns). 0 = no filter.

§inserted_after_ns: i64

Only messages inserted after this timestamp (ns). 0 = no filter.

§inserted_before_ns: i64

Only messages inserted before this timestamp (ns). 0 = no filter.

§limit: i64

Maximum number of messages. 0 = no limit.

§delivery_status: i32

Filter by delivery status: -1 = all, 0 = Unpublished, 1 = Published, 2 = Failed.

§kind: i32

Filter by message kind: -1 = all, 0 = Application, 1 = MembershipChange.

§direction: i32

Sort direction: 0 = Ascending (default), 1 = Descending.

§sort_by: i32

Sort by: 0 = SentAt (default), 1 = InsertedAt.

§content_types: *const i32

Include only these content types (nullable). Each element is a ContentType i32 value.

§content_types_count: i32

Number of elements in content_types. 0 = no filter.

§exclude_content_types: *const i32

Exclude these content types (nullable). Each element is a ContentType i32 value.

§exclude_content_types_count: i32

Number of elements in exclude_content_types. 0 = no filter.

§exclude_sender_inbox_ids: *const *const c_char

Exclude messages from these sender inbox IDs (nullable C string array).

§exclude_sender_inbox_ids_count: i32

Number of elements in exclude_sender_inbox_ids. 0 = no filter.

§exclude_disappearing: i32

Whether to exclude disappearing messages. 0 = include (default), 1 = exclude.

Trait Implementations§

Source§

impl Clone for XmtpFfiListMessagesOptions

Source§

fn clone(&self) -> XmtpFfiListMessagesOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for XmtpFfiListMessagesOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for XmtpFfiListMessagesOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for XmtpFfiListMessagesOptions

Source§

fn eq(&self, other: &XmtpFfiListMessagesOptions) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for XmtpFfiListMessagesOptions

Source§

impl Eq for XmtpFfiListMessagesOptions

Source§

impl StructuralPartialEq for XmtpFfiListMessagesOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.