pub struct Query { /* private fields */ }
Implementations§
Source§impl 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 Freeze for Query
impl RefUnwindSafe for Query
impl !Send for Query
impl !Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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