pub struct ResourceSearchQuery {Show 16 fields
pub q: String,
pub page: Option<u32>,
pub language: Option<String>,
pub age_ranges: Vec<AgeRangeId>,
pub affiliations: Vec<AffiliationId>,
pub resource_types: Vec<ResourceTypeId>,
pub categories: Vec<CategoryId>,
pub is_published: Option<bool>,
pub author_id: Option<UserOrMe>,
pub author_name: Option<String>,
pub other_keywords: Option<String>,
pub translated_keywords: Option<String>,
pub privacy_level: Vec<PrivacyLevel>,
pub blocked: Option<bool>,
pub page_limit: Option<u32>,
pub is_rated: Option<bool>,
}
Expand description
Search for Resources via the given query string.
Fields§
§q: String
The query string.
page: Option<u32>
The page number of the Resources to get.
language: Option<String>
Optionally filter by language
age_ranges: Vec<AgeRangeId>
Optionally filter by age_ranges
Note: Currently does nothing
affiliations: Vec<AffiliationId>
Optionally filter by affiliations
Note: Currently does nothing
resource_types: Vec<ResourceTypeId>
Optionally filter by additional resources
categories: Vec<CategoryId>
Optionally filter by categories
is_published: Option<bool>
Optionally filter by is_published
. This means that the Resource’s publish_at < now()
.
Optionally filter by author’s id
Optionally filter by the author’s name
other_keywords: Option<String>
Optionally search for Resources using keywords
translated_keywords: Option<String>
Optionally search for Resources using translated keyword
privacy_level: Vec<PrivacyLevel>
Optionally search for Resources by privacy level
blocked: Option<bool>
Optionally search for blocked or non-blocked Resources
page_limit: Option<u32>
The hits per page to be returned
is_rated: Option<bool>
Optionally filter resources based off of existence of rating
Trait Implementations§
Source§impl Clone for ResourceSearchQuery
impl Clone for ResourceSearchQuery
Source§fn clone(&self) -> ResourceSearchQuery
fn clone(&self) -> ResourceSearchQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more