Struct headless_lms_models::pages::Page
source · pub struct Page {Show 14 fields
pub id: Uuid,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub course_id: Option<Uuid>,
pub exam_id: Option<Uuid>,
pub chapter_id: Option<Uuid>,
pub url_path: String,
pub title: String,
pub deleted_at: Option<DateTime<Utc>>,
pub content: Value,
pub order_number: i32,
pub copied_from: Option<Uuid>,
pub hidden: bool,
pub page_language_group_id: Option<Uuid>,
}
Fields§
§id: Uuid
§created_at: DateTime<Utc>
§updated_at: DateTime<Utc>
§course_id: Option<Uuid>
§exam_id: Option<Uuid>
§chapter_id: Option<Uuid>
§url_path: String
§title: String
§deleted_at: Option<DateTime<Utc>>
§content: Value
§order_number: i32
§copied_from: Option<Uuid>
§page_language_group_id: Option<Uuid>
Implementations§
source§impl Page
impl Page
pub fn blocks_cloned(&self) -> ModelResult<Vec<GutenbergBlock>>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Page
impl<'de> Deserialize<'de> for Page
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 Page
impl PartialEq for Page
impl StructuralPartialEq for Page
Auto Trait Implementations§
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnwindSafe for Page
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