Struct headless_lms_models::courses::NewCourse
source · pub struct NewCourse {
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,
}
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.
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
source§impl PartialEq for NewCourse
impl PartialEq for NewCourse
impl StructuralPartialEq for NewCourse
Auto Trait Implementations§
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