Struct libqaul::messages::MsgQuery[][src]

pub struct MsgQuery { /* fields omitted */ }

A query interface for the local message store

Implementations

impl MsgQuery[src]

pub fn new() -> MsgQuery[src]

Create a new, empty query

pub fn id(id: Identity) -> MsgQuery[src]

An override query, that only searches for a specific Id

Ignores all other values passed into the query

pub fn sender(self, sender: Identity) -> MsgQuery[src]

Query for messages by a specific sender

pub fn tag(self, t: Tag) -> MsgQuery[src]

Add a tag to the query that must be present

Tag queries aim to be a subset in matching messages, which means that more tags can exist for a message, but all provided tags must be present.

pub fn unread(self) -> MsgQuery[src]

A convenience function for addding the “unread” tag

Trait Implementations

impl Clone for MsgQuery[src]

impl Debug for MsgQuery[src]

impl Default for MsgQuery[src]

impl<'de> Deserialize<'de> for MsgQuery[src]

impl Eq for MsgQuery[src]

impl PartialEq<MsgQuery> for MsgQuery[src]

impl Serialize for MsgQuery[src]

impl StructuralEq for MsgQuery[src]

impl StructuralPartialEq for MsgQuery[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]