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§impl Serialize for NewCourseModule
impl Serialize for NewCourseModule
impl StructuralPartialEq for NewCourseModule
Auto Trait Implementations§
impl Freeze for NewCourseModule
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
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