pub struct SearchQuery {
pub pattern: Option<Regex>,
pub author: Option<String>,
pub labels: Vec<String>,
pub scope: Option<String>,
pub max_depth: Option<usize>,
pub titles_only: bool,
pub limit: Option<usize>,
}Expand description
A forum search. All set filters must match (AND).
Fields§
§pattern: Option<Regex>Regex matched against the body (or the thread title when titles_only).
Author substring (case-insensitive).
labels: Vec<String>Labels that must all be present.
scope: Option<String>Restrict to a thread (or a subtree, by ID prefix) e.g. F-1 or F-1.2.
max_depth: Option<usize>Only consider posts at this depth or shallower.
titles_only: boolMatch only thread titles (root posts).
limit: Option<usize>Cap the number of results.
Trait Implementations§
Source§impl Clone for SearchQuery
impl Clone for SearchQuery
Source§fn clone(&self) -> SearchQuery
fn clone(&self) -> SearchQuery
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 SearchQuery
impl Debug for SearchQuery
Source§impl Default for SearchQuery
impl Default for SearchQuery
Source§fn default() -> SearchQuery
fn default() -> SearchQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchQuery
impl RefUnwindSafe for SearchQuery
impl Send for SearchQuery
impl Sync for SearchQuery
impl Unpin for SearchQuery
impl UnsafeUnpin for SearchQuery
impl UnwindSafe for SearchQuery
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