pub struct Course {Show 21 fields
pub id: Uuid,
pub slug: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub name: String,
pub description: Option<String>,
pub organization_id: Uuid,
pub deleted_at: Option<DateTime<Utc>>,
pub language_code: String,
pub copied_from: Option<Uuid>,
pub content_search_language: Option<String>,
pub course_language_group_id: Uuid,
pub is_draft: bool,
pub is_test_mode: bool,
pub is_unlisted: bool,
pub base_module_completion_requires_n_submodule_completions: i32,
pub can_add_chatbot: bool,
pub is_joinable_by_code_only: bool,
pub join_code: Option<String>,
pub ask_marketing_consent: bool,
pub flagged_answers_threshold: Option<i32>,
}
Fields§
§id: Uuid
§slug: String
§created_at: DateTime<Utc>
§updated_at: DateTime<Utc>
§name: String
§description: Option<String>
§organization_id: Uuid
§deleted_at: Option<DateTime<Utc>>
§language_code: String
§copied_from: Option<Uuid>
§content_search_language: Option<String>
§course_language_group_id: Uuid
§is_draft: bool
§is_test_mode: bool
§is_unlisted: bool
§base_module_completion_requires_n_submodule_completions: i32
§can_add_chatbot: bool
§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 Course
impl<'de> Deserialize<'de> for Course
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 Course
Auto Trait Implementations§
impl Freeze for Course
impl RefUnwindSafe for Course
impl Send for Course
impl Sync for Course
impl Unpin for Course
impl UnwindSafe for Course
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