pub struct Page {
pub content: PageContent,
pub thumbnail: Option<String>,
pub has_description: bool,
pub description: Option<String>,
}Expand description
A page for a chapter.
Fields§
§content: PageContentThe page content.
thumbnail: Option<String>Optional thumbnail image url for the page.
has_description: boolIf the page has a description.
description: Option<String>Optional description for the page.
If has_description is true and this is None, PageDescriptionProvider will be used.
If has_description is false, this field will be ignored.
Implementations§
Source§impl Page
impl Page
Sourcepub fn ensure_externally_managed(&mut self)
pub fn ensure_externally_managed(&mut self)
Set the page content to be externally managed if it is an image.
This property is exposed for the functions that the register_source macro generates and should not be used directly.
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
impl StructuralPartialEq for Page
Auto Trait Implementations§
impl Freeze for Page
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