pub struct SearchRequest {
pub group: Option<String>,
pub query: String,
pub scope: Option<Scope>,
pub filters: Vec<(String, String)>,
pub since: Option<String>,
pub until: Option<String>,
pub sort: Sort,
pub limit: usize,
pub offset: usize,
pub fallback: bool,
}Fields§
§group: Option<String>§query: String§scope: Option<Scope>Defaults to Group when a group is given, else All.
filters: Vec<(String, String)>field = value pairs; several values for one field mean any of them.
since: Option<String>§until: Option<String>§sort: Sort§limit: usize§offset: usize§fallback: boolWhen the group has no match, add labeled results from other groups.
Trait Implementations§
Source§impl Clone for SearchRequest
impl Clone for SearchRequest
Source§impl Debug for SearchRequest
impl Debug for SearchRequest
Auto Trait Implementations§
impl Freeze for SearchRequest
impl RefUnwindSafe for SearchRequest
impl Send for SearchRequest
impl Sync for SearchRequest
impl Unpin for SearchRequest
impl UnsafeUnpin for SearchRequest
impl UnwindSafe for SearchRequest
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