Struct headless_lms_models::chapters::NewChapter
source · pub struct NewChapter {
pub name: String,
pub color: Option<String>,
pub course_id: Uuid,
pub chapter_number: i32,
pub front_page_id: Option<Uuid>,
pub opens_at: Option<DateTime<Utc>>,
pub deadline: Option<DateTime<Utc>>,
pub course_module_id: Option<Uuid>,
}
Fields§
§name: String
§color: Option<String>
§course_id: Uuid
§chapter_number: i32
§front_page_id: Option<Uuid>
§opens_at: Option<DateTime<Utc>>
§deadline: Option<DateTime<Utc>>
§course_module_id: Option<Uuid>
If undefined when creating a chapter, will use the course default one. CHANGE TO NON NULL WHEN FRONTEND MODULE EDITING IMPLEMENTED
Trait Implementations§
source§impl Clone for NewChapter
impl Clone for NewChapter
source§fn clone(&self) -> NewChapter
fn clone(&self) -> NewChapter
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 NewChapter
impl Debug for NewChapter
source§impl<'de> Deserialize<'de> for NewChapter
impl<'de> Deserialize<'de> for NewChapter
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 NewChapter
impl PartialEq for NewChapter
source§fn eq(&self, other: &NewChapter) -> bool
fn eq(&self, other: &NewChapter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NewChapter
impl Serialize for NewChapter
impl StructuralPartialEq for NewChapter
Auto Trait Implementations§
impl RefUnwindSafe for NewChapter
impl Send for NewChapter
impl Sync for NewChapter
impl Unpin for NewChapter
impl UnwindSafe for NewChapter
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