Struct pocky::MarkdownPage
source · pub struct MarkdownPage<M: DeserializeOwned> {
pub metadata: Option<M>,
pub content: String,
}
Fields§
§metadata: Option<M>
§content: String
Implementations§
source§impl<M: DeserializeOwned> MarkdownPage<M>
impl<M: DeserializeOwned> MarkdownPage<M>
Trait Implementations§
source§impl<M> AsHtml for MarkdownPage<M>where
M: DeserializeOwned,
impl<M> AsHtml for MarkdownPage<M>where M: DeserializeOwned,
source§impl<M: Clone + DeserializeOwned> Clone for MarkdownPage<M>
impl<M: Clone + DeserializeOwned> Clone for MarkdownPage<M>
source§fn clone(&self) -> MarkdownPage<M>
fn clone(&self) -> MarkdownPage<M>
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<M: Debug + DeserializeOwned> Debug for MarkdownPage<M>
impl<M: Debug + DeserializeOwned> Debug for MarkdownPage<M>
source§impl<M, P> From<P> for MarkdownPage<M>where
P: AsRef<Path>,
M: DeserializeOwned,
impl<M, P> From<P> for MarkdownPage<M>where P: AsRef<Path>, M: DeserializeOwned,
Auto Trait Implementations§
impl<M> RefUnwindSafe for MarkdownPage<M>where M: RefUnwindSafe,
impl<M> Send for MarkdownPage<M>where M: Send,
impl<M> Sync for MarkdownPage<M>where M: Sync,
impl<M> Unpin for MarkdownPage<M>where M: Unpin,
impl<M> UnwindSafe for MarkdownPage<M>where M: UnwindSafe,
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