Struct parse_mediawiki_dump_reboot::Page
source · pub struct Page {
pub format: Option<String>,
pub model: Option<String>,
pub namespace: Namespace,
pub text: String,
pub title: String,
}
Expand description
Parsed page.
Parsed from the page
element.
Although the format
and model
elements are defined as mandatory in the schema, previous versions of the schema don’t contain them. Therefore the corresponding fields can be None
.
Fields§
§format: Option<String>
The format of the revision if any.
Parsed from the text content of the format
element in the revision
element. None
if the element is not present.
For ordinary articles the format is text/x-wiki
.
model: Option<String>
The model of the revision if any.
Parsed from the text content of the model
element in the revision
element. None
if the element is not present.
For ordinary articles the model is wikitext
.
namespace: Namespace
The namespace of the page.
Parsed from the text content of the ns
element in the page
element.
For ordinary articles the namespace is 0.
text: String
The text of the revision.
Parsed from the text content of the text
element in the revision
element.
title: String
The title of the page.
Parsed from the text content of the title
element in the page
element.