pub struct StructuredArticle {
pub base: Article,
pub date_created: DateTime<Utc>,
pub infoboxes: Vec<Infobox>,
pub sections: Vec<Section>,
pub tables: Table,
pub references: Reference,
}Expand description
Structured Contents (BETA) - Article with parsed content.
This type extends Article with fully parsed content including infoboxes,
sections, and tables. Available through the Structured Contents BETA endpoint.
§Accessing Content
Use the convenience methods to access parsed content:
ⓘ
use wme_models::StructuredArticle;
// Get infobox by name
if let Some(infobox) = article.infobox("Automatic taxobox") {
// Process infobox fields
}
// Get section by name
if let Some(section) = article.section("Taxonomy") {
// Process section content
}Fields§
§base: ArticleBase article fields (flattened)
date_created: DateTime<Utc>Creation timestamp (first revision) - only in structured contents
infoboxes: Vec<Infobox>Parsed infoboxes
sections: Vec<Section>Parsed sections
tables: TableTables (single object in structured contents)
references: ReferenceReferences/citations (single object in structured contents)
Implementations§
Trait Implementations§
Source§impl Clone for StructuredArticle
impl Clone for StructuredArticle
Source§fn clone(&self) -> StructuredArticle
fn clone(&self) -> StructuredArticle
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 StructuredArticle
impl Debug for StructuredArticle
Source§impl Deref for StructuredArticle
impl Deref for StructuredArticle
Source§impl<'de> Deserialize<'de> for StructuredArticle
impl<'de> Deserialize<'de> for StructuredArticle
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 StructuredArticle
impl PartialEq for StructuredArticle
Source§impl Serialize for StructuredArticle
impl Serialize for StructuredArticle
impl StructuralPartialEq for StructuredArticle
Auto Trait Implementations§
impl Freeze for StructuredArticle
impl RefUnwindSafe for StructuredArticle
impl Send for StructuredArticle
impl Sync for StructuredArticle
impl Unpin for StructuredArticle
impl UnsafeUnpin for StructuredArticle
impl UnwindSafe for StructuredArticle
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