pub struct MessageQuery {
pub channel_id: Option<u64>,
pub sender: Option<String>,
pub since: Option<u64>,
pub until: Option<u64>,
pub content_contains: Option<String>,
pub message_type: Option<String>,
pub limit: Option<usize>,
}Expand description
Query filters for messages.
Fields§
§channel_id: Option<u64>§sender: Option<String>§since: Option<u64>§until: Option<u64>§content_contains: Option<String>§message_type: Option<String>§limit: Option<usize>Trait Implementations§
Source§impl Clone for MessageQuery
impl Clone for MessageQuery
Source§fn clone(&self) -> MessageQuery
fn clone(&self) -> MessageQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessageQuery
impl Debug for MessageQuery
Source§impl Default for MessageQuery
impl Default for MessageQuery
Source§fn default() -> MessageQuery
fn default() -> MessageQuery
Returns the “default value” for a type. Read more
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