pub struct CustomPage {
pub body: Option<String>,
pub hidden: Option<bool>,
pub html: Option<String>,
pub htmlmode: Option<bool>,
pub title: String,
}
Fields§
§body: Option<String>
Body formatted in Markdown (displayed by default).
Visibility of the custom page
html: Option<String>
Body formatted in HTML (sanitized, only displayed if htmlmode
is true).
htmlmode: Option<bool>
true if html
should be displayed, false if body
should be displayed.
title: String
Title of the custom page
Trait Implementations§
Source§impl Debug for CustomPage
impl Debug for CustomPage
Source§impl<'de> Deserialize<'de> for CustomPage
impl<'de> Deserialize<'de> for CustomPage
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 Display for CustomPage
impl Display for CustomPage
Auto Trait Implementations§
impl Freeze for CustomPage
impl RefUnwindSafe for CustomPage
impl Send for CustomPage
impl Sync for CustomPage
impl Unpin for CustomPage
impl UnwindSafe for CustomPage
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