pub struct ResourceBrowseQuery {
pub is_published: Option<bool>,
pub author_id: Option<UserOrMe>,
pub page: Option<u32>,
pub draft_or_live: Option<DraftOrLive>,
pub privacy_level: Vec<PrivacyLevel>,
pub blocked: Option<bool>,
pub page_limit: Option<u32>,
pub resource_types: Vec<ResourceTypeId>,
pub order_by: Option<OrderBy>,
}
Expand description
Query for Browse
.
Fields§
§is_published: Option<bool>
Optionally filter by is_published
Optionally filter by author id.
page: Option<u32>
The page number of the Resources to get.
draft_or_live: Option<DraftOrLive>
Optionally browse by draft or live.
privacy_level: Vec<PrivacyLevel>
Optionally filter Resource by their privacy level
blocked: Option<bool>
Optionally filter Resource by blocked status
page_limit: Option<u32>
The hits per page to be returned
resource_types: Vec<ResourceTypeId>
Optionally filter by additional resources
order_by: Option<OrderBy>
The hits per page to be returned
Trait Implementations§
Source§impl Clone for ResourceBrowseQuery
impl Clone for ResourceBrowseQuery
Source§fn clone(&self) -> ResourceBrowseQuery
fn clone(&self) -> ResourceBrowseQuery
Returns a copy of the value. Read more
1.0.0 · 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 ResourceBrowseQuery
impl Debug for ResourceBrowseQuery
Source§impl Default for ResourceBrowseQuery
impl Default for ResourceBrowseQuery
Source§fn default() -> ResourceBrowseQuery
fn default() -> ResourceBrowseQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceBrowseQuery
impl<'de> Deserialize<'de> for ResourceBrowseQuery
Source§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
Auto Trait Implementations§
impl Freeze for ResourceBrowseQuery
impl RefUnwindSafe for ResourceBrowseQuery
impl Send for ResourceBrowseQuery
impl Sync for ResourceBrowseQuery
impl Unpin for ResourceBrowseQuery
impl UnwindSafe for ResourceBrowseQuery
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