Struct headless_lms_models::pages::CoursePageWithUserData
source · pub struct CoursePageWithUserData {
pub page: Page,
pub instance: Option<CourseInstance>,
pub settings: Option<UserCourseSettings>,
pub was_redirected: bool,
pub is_test_mode: bool,
}
Fields§
§page: Page
§instance: Option<CourseInstance>
§settings: Option<UserCourseSettings>
§was_redirected: bool
If true, the frontend needs to update the url in the browser to match the path in the page object without reloading the page.
is_test_mode: bool
Trait Implementations§
source§impl Clone for CoursePageWithUserData
impl Clone for CoursePageWithUserData
source§fn clone(&self) -> CoursePageWithUserData
fn clone(&self) -> CoursePageWithUserData
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 CoursePageWithUserData
impl Debug for CoursePageWithUserData
source§impl<'de> Deserialize<'de> for CoursePageWithUserData
impl<'de> Deserialize<'de> for CoursePageWithUserData
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 CoursePageWithUserData
impl PartialEq for CoursePageWithUserData
source§fn eq(&self, other: &CoursePageWithUserData) -> bool
fn eq(&self, other: &CoursePageWithUserData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CoursePageWithUserData
impl Serialize for CoursePageWithUserData
impl StructuralPartialEq for CoursePageWithUserData
Auto Trait Implementations§
impl RefUnwindSafe for CoursePageWithUserData
impl Send for CoursePageWithUserData
impl Sync for CoursePageWithUserData
impl Unpin for CoursePageWithUserData
impl UnwindSafe for CoursePageWithUserData
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