pub struct NewCourse {Show 15 fields
pub name: String,
pub slug: String,
pub organization_id: Uuid,
pub language_code: String,
pub teacher_in_charge_name: String,
pub teacher_in_charge_email: String,
pub description: String,
pub is_draft: bool,
pub is_test_mode: bool,
pub is_unlisted: bool,
pub copy_user_permissions: bool,
pub is_joinable_by_code_only: bool,
pub join_code: Option<String>,
pub ask_marketing_consent: bool,
pub flagged_answers_threshold: Option<i32>,
}
Expand description
Represents the subset of page fields that are required to create a new course.
Fields§
§name: String
§slug: String
§organization_id: Uuid
§language_code: String
§teacher_in_charge_name: String
Name of the teacher who is responsible for the course. Must be a valid name.
teacher_in_charge_email: String
Email of the teacher who is responsible for the course. Must be a valid email.
description: String
§is_draft: bool
§is_test_mode: bool
§is_unlisted: bool
§copy_user_permissions: bool
If true, copies all user permissions from the original course to the new one.
is_joinable_by_code_only: bool
§join_code: Option<String>
§ask_marketing_consent: bool
§flagged_answers_threshold: Option<i32>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NewCourse
impl<'de> Deserialize<'de> for NewCourse
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
impl StructuralPartialEq for NewCourse
Auto Trait Implementations§
impl Freeze for NewCourse
impl RefUnwindSafe for NewCourse
impl Send for NewCourse
impl Sync for NewCourse
impl Unpin for NewCourse
impl UnwindSafe for NewCourse
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