pub struct Query { /* private fields */ }
Implementations
sourceimpl Query
impl Query
pub fn create(database: &Database, query_string: &str) -> Result<Self, Error>
pub fn query_string(&self) -> String
sourcepub fn search_messages(&self) -> Result<Messages, Error>
pub fn search_messages(&self) -> Result<Messages, Error>
Filter messages according to the query and return
pub fn count_messages(&self) -> Result<u32, Error>
pub fn search_threads(&self) -> Result<Threads, Error>
pub fn count_threads(&self) -> Result<u32, Error>
pub fn add_tag_exclude(&self, tag: &str) -> Result<(), Error>
pub fn set_omit_excluded(&self, omit_excluded: Exclude)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Query
impl !Send for Query
impl !Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more