pub struct WikiPage {
pub available_locales: Vec<String>,
pub layout: String,
pub locale: String,
pub markdown: String,
pub path: String,
pub subtitle: Option<String>,
pub tags: Vec<String>,
pub title: String,
}
Expand description
Represents a wiki article
Fields§
§available_locales: Vec<String>
All available locales for the article
layout: String
The layout type for the page
locale: String
All lowercase BCP 47 language tag
markdown: String
Markdown content
path: String
Path of the article
subtitle: Option<String>
The article’s subtitle
Associated tags for the article
title: String
The article’s title
Trait Implementations§
source§impl<'de> Deserialize<'de> for WikiPage
impl<'de> Deserialize<'de> for WikiPage
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<WikiPage> for WikiPage
impl PartialEq<WikiPage> for WikiPage
impl Eq for WikiPage
impl StructuralEq for WikiPage
impl StructuralPartialEq for WikiPage
Auto Trait Implementations§
impl RefUnwindSafe for WikiPage
impl Send for WikiPage
impl Sync for WikiPage
impl Unpin for WikiPage
impl UnwindSafe for WikiPage
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.