pub struct Version {Show 13 fields
pub identifier: u64,
pub editor: Option<Editor>,
pub comment: Option<String>,
pub tags: Option<Vec<String>>,
pub has_tag_needs_citation: Option<bool>,
pub is_minor_edit: Option<bool>,
pub is_flagged_stable: Option<bool>,
pub is_breaking_news: Option<bool>,
pub noindex: Option<bool>,
pub number_of_characters: Option<u64>,
pub size: Option<ArticleSize>,
pub maintenance_tags: Option<MaintenanceTags>,
pub scores: Option<Scores>,
}Expand description
Version information for an article.
Represents a single revision of an article with comprehensive metadata including editor information, credibility signals, and quality scores.
§Key Fields
identifier- Unique revision ID (different from article ID)editor- Editor who made this revisionscores- Quality predictions from LiftWing modelsmaintenance_tags- Counts of maintenance templatesis_flagged_stable- Community-approved revision flag
Fields§
§identifier: u64Revision identifier (unique for each edit)
editor: Option<Editor>Editor information
comment: Option<String>Edit comment
MediaWiki change tags
has_tag_needs_citation: Option<bool>Has “citation needed” tag
is_minor_edit: Option<bool>Was this a minor edit
is_flagged_stable: Option<bool>Community-approved revision
is_breaking_news: Option<bool>Breaking news flag
noindex: Option<bool>Non-indexable to search engines
number_of_characters: Option<u64>Character count from wikitext
size: Option<ArticleSize>Article size
Maintenance template counts
scores: Option<Scores>Quality scores
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
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
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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