Struct backend::models::search::SearchParam [−][src]
pub struct SearchParam {
pub collection: String,
pub q: String,
pub query_by: String,
pub filter_by: String,
pub sort_by: String,
pub group_by: String,
pub highlight_fields: String,
}
Expand description
Search parameters
Fields
collection
: The collection to search in String, burrows/posts/repliesq
: Search keyword in Stringquery_by
: The field to queryfilter_by
: Filter condition in Stringsort_by
: Sort result condition in Stringgroup_by
: Group condition in Stringhighlight_fields
: Highlight fields in String
Fields
collection: String
q: String
query_by: String
filter_by: String
sort_by: String
group_by: String
highlight_fields: String
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SearchParam
impl Send for SearchParam
impl Sync for SearchParam
impl Unpin for SearchParam
impl UnwindSafe for SearchParam
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more