pub struct CourseBrowseQuery {
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 Courses to get.
draft_or_live: Option<DraftOrLive>
Optionally browse by draft or live.
privacy_level: Vec<PrivacyLevel>
Optionally filter Course by their privacy level
blocked: Option<bool>
Optionally filter courses 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>
Order by sort
Trait Implementations§
Source§impl Clone for CourseBrowseQuery
impl Clone for CourseBrowseQuery
Source§fn clone(&self) -> CourseBrowseQuery
fn clone(&self) -> CourseBrowseQuery
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 CourseBrowseQuery
impl Debug for CourseBrowseQuery
Source§impl Default for CourseBrowseQuery
impl Default for CourseBrowseQuery
Source§fn default() -> CourseBrowseQuery
fn default() -> CourseBrowseQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CourseBrowseQuery
impl<'de> Deserialize<'de> for CourseBrowseQuery
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 CourseBrowseQuery
impl RefUnwindSafe for CourseBrowseQuery
impl Send for CourseBrowseQuery
impl Sync for CourseBrowseQuery
impl Unpin for CourseBrowseQuery
impl UnwindSafe for CourseBrowseQuery
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