pub struct CourseAdminData {
pub rating: Option<CourseRating>,
pub blocked: bool,
pub curated: bool,
pub premium: bool,
}
Expand description
These fields can be edited by admin and can be viewed by everyone
Fields§
§rating: Option<CourseRating>
Rating for jig, weighted for jig search
blocked: bool
if true does not appear in search
curated: bool
Indicates jig has been curated by admin
Whether the resource is a premium resource
Trait Implementations§
Source§impl Clone for CourseAdminData
impl Clone for CourseAdminData
Source§fn clone(&self) -> CourseAdminData
fn clone(&self) -> CourseAdminData
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 CourseAdminData
impl Debug for CourseAdminData
Source§impl Default for CourseAdminData
impl Default for CourseAdminData
Source§fn default() -> CourseAdminData
fn default() -> CourseAdminData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CourseAdminData
impl<'de> Deserialize<'de> for CourseAdminData
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 CourseAdminData
impl RefUnwindSafe for CourseAdminData
impl Send for CourseAdminData
impl Sync for CourseAdminData
impl Unpin for CourseAdminData
impl UnwindSafe for CourseAdminData
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