pub struct ArticleBody {
pub html: Option<String>,
pub wikitext: Option<String>,
}Expand description
Article body content.
Contains both HTML and wikitext representations of the article. Depending on the API endpoint and fields requested, one or both may be present.
§Example
use wme_models::ArticleBody;
let body = ArticleBody {
html: Some("<p>Article content</p>".to_string()),
wikitext: Some("Article content".to_string()),
};Fields§
§html: Option<String>HTML content (parsed from wikitext)
wikitext: Option<String>Wikitext content (raw markup)
Trait Implementations§
Source§impl Clone for ArticleBody
impl Clone for ArticleBody
Source§fn clone(&self) -> ArticleBody
fn clone(&self) -> ArticleBody
Returns a duplicate 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 Debug for ArticleBody
impl Debug for ArticleBody
Source§impl<'de> Deserialize<'de> for ArticleBody
impl<'de> Deserialize<'de> for ArticleBody
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 ArticleBody
impl PartialEq for ArticleBody
Source§impl Serialize for ArticleBody
impl Serialize for ArticleBody
impl StructuralPartialEq for ArticleBody
Auto Trait Implementations§
impl Freeze for ArticleBody
impl RefUnwindSafe for ArticleBody
impl Send for ArticleBody
impl Sync for ArticleBody
impl Unpin for ArticleBody
impl UnsafeUnpin for ArticleBody
impl UnwindSafe for ArticleBody
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