pub struct NewCourseModule {
completion_policy: CompletionPolicy,
completion_registration_link_override: Option<String>,
course_id: Uuid,
ects_credits: Option<f32>,
name: Option<String>,
order_number: i32,
uh_course_code: Option<String>,
enable_registering_completion_to_uh_open_university: bool,
}
Fields§
§completion_policy: CompletionPolicy
§completion_registration_link_override: Option<String>
§course_id: Uuid
§ects_credits: Option<f32>
§name: Option<String>
§order_number: i32
§uh_course_code: Option<String>
§enable_registering_completion_to_uh_open_university: bool
Implementations§
source§impl NewCourseModule
impl NewCourseModule
pub fn new(course_id: Uuid, name: Option<String>, order_number: i32) -> Self
pub fn new_course_default(course_id: Uuid) -> Self
pub fn set_uh_course_code(self, uh_course_code: Option<String>) -> Self
pub fn set_completion_policy(self, completion_policy: CompletionPolicy) -> Self
pub fn set_completion_registration_link_override( self, completion_registration_link_override: Option<String> ) -> Self
pub fn set_ects_credits(self, ects_credits: Option<f32>) -> Self
pub fn set_enable_registering_completion_to_uh_open_university( self, enable_registering_completion_to_uh_open_university: bool ) -> Self
Trait Implementations§
source§impl Clone for NewCourseModule
impl Clone for NewCourseModule
source§fn clone(&self) -> NewCourseModule
fn clone(&self) -> NewCourseModule
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 NewCourseModule
impl Debug for NewCourseModule
source§impl<'de> Deserialize<'de> for NewCourseModule
impl<'de> Deserialize<'de> for NewCourseModule
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 NewCourseModule
impl PartialEq for NewCourseModule
source§fn eq(&self, other: &NewCourseModule) -> bool
fn eq(&self, other: &NewCourseModule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NewCourseModule
impl Serialize for NewCourseModule
impl StructuralPartialEq for NewCourseModule
Auto Trait Implementations§
impl RefUnwindSafe for NewCourseModule
impl Send for NewCourseModule
impl Sync for NewCourseModule
impl Unpin for NewCourseModule
impl UnwindSafe for NewCourseModule
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