pub struct CourseMaterialCourse {Show 18 fields
pub id: Uuid,
pub slug: String,
pub name: String,
pub description: Option<String>,
pub organization_id: Uuid,
pub language_code: String,
pub copied_from: Option<Uuid>,
pub content_search_language: Option<String>,
pub course_language_group_id: Uuid,
pub is_draft: bool,
pub is_test_mode: bool,
pub is_unlisted: bool,
pub base_module_completion_requires_n_submodule_completions: i32,
pub is_joinable_by_code_only: bool,
pub ask_marketing_consent: bool,
pub closed_at: Option<DateTime<Utc>>,
pub closed_additional_message: Option<String>,
pub closed_course_successor_id: Option<Uuid>,
}
Expand description
A subset of the Course
struct that contains the fields that are allowed to be shown to all students on the course materials.
Fields§
§id: Uuid
§slug: String
§name: String
§description: Option<String>
§organization_id: Uuid
§language_code: String
§copied_from: Option<Uuid>
§content_search_language: Option<String>
§course_language_group_id: Uuid
§is_draft: bool
§is_test_mode: bool
§is_unlisted: bool
§base_module_completion_requires_n_submodule_completions: i32
§is_joinable_by_code_only: bool
§ask_marketing_consent: bool
§closed_at: Option<DateTime<Utc>>
§closed_additional_message: Option<String>
§closed_course_successor_id: Option<Uuid>
Trait Implementations§
Source§impl Clone for CourseMaterialCourse
impl Clone for CourseMaterialCourse
Source§fn clone(&self) -> CourseMaterialCourse
fn clone(&self) -> CourseMaterialCourse
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 CourseMaterialCourse
impl Debug for CourseMaterialCourse
Source§impl<'de> Deserialize<'de> for CourseMaterialCourse
impl<'de> Deserialize<'de> for CourseMaterialCourse
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
Source§impl From<Course> for CourseMaterialCourse
impl From<Course> for CourseMaterialCourse
Source§impl PartialEq for CourseMaterialCourse
impl PartialEq for CourseMaterialCourse
Source§impl Serialize for CourseMaterialCourse
impl Serialize for CourseMaterialCourse
impl StructuralPartialEq for CourseMaterialCourse
Auto Trait Implementations§
impl Freeze for CourseMaterialCourse
impl RefUnwindSafe for CourseMaterialCourse
impl Send for CourseMaterialCourse
impl Sync for CourseMaterialCourse
impl Unpin for CourseMaterialCourse
impl UnwindSafe for CourseMaterialCourse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more