#[non_exhaustive]pub struct MessageQuery {
pub inbox: Option<String>,
pub thread: Option<String>,
pub q: Option<String>,
pub limit: Option<u32>,
pub before: Option<String>,
pub held: bool,
}Expand description
The filters and cursor for Owlpost::list_messages: an inbox or thread
id, a full-text q, a page limit, before — the previous page’s
MessagePage::next — and held, the only lifecycle state
(status=held) a listing can be filtered to. Every field is optional, and
an empty one is left off the query string. #[non_exhaustive]: build with
MessageQuery::default and set fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inbox: Option<String>§thread: Option<String>§q: Option<String>§limit: Option<u32>§before: Option<String>§held: boolTrait Implementations§
Source§impl Clone for MessageQuery
impl Clone for MessageQuery
Source§impl Debug for MessageQuery
impl Debug for MessageQuery
Auto Trait Implementations§
impl Freeze for MessageQuery
impl RefUnwindSafe for MessageQuery
impl Send for MessageQuery
impl Sync for MessageQuery
impl Unpin for MessageQuery
impl UnsafeUnpin for MessageQuery
impl UnwindSafe for MessageQuery
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