[][src]Struct eventstreams::EditEvent

pub struct EditEvent {
    pub id: u32,
    pub namespace: i32,
    pub title: String,
    pub comment: String,
    pub parsedcomment: String,
    pub timestamp: u32,
    pub user: String,
    pub bot: bool,
    pub length: EventLength,
    pub revision: EventRevision,
    pub server_url: String,
    pub server_name: String,
    pub server_script_path: String,
    pub wiki: String,
    // some fields omitted
}

Represents an edit

Fields

id: u32

Revision ID (rev_id)

namespace: i32

Namespace ID

title: String

Prefixed title (includes namespace name)

comment: String

Edit summary (comment_text)

parsedcomment: String

HTML-parsed version of comment

timestamp: u32

Unix timestamp

user: String

Username (actor_name)

bot: bool

Whether the edit was flagged as by a bot (rc_bot)

length: EventLength

Length in bytes of new revision, and potentially old revision

revision: EventRevision

Revision ID of new revision, and potentially old revision

server_url: String

URL of wiki with protocol, e.g. https://www.wikidata.org

server_name: String

Domain of wiki with no protocol, e.g. www.wikidata.org or en.wikipedia.org

server_script_path: String

Base URL path of wiki ($wgScriptPath)

wiki: String

Internal database name (usually $wgDBname)

Implementations

impl EditEvent[src]

pub fn is_minor(&self) -> bool[src]

Whether the edit is marked as minor

pub fn is_patrolled(&self) -> bool[src]

Whether the edit has been marked as patrolled

pub fn api_url(&self) -> String[src]

URL to the wiki's api.php ("Action API") endpoint

pub fn diff_url(&self) -> String[src]

URL to the diff for this edit, formatted for human readability

pub fn short_diff_url(&self) -> String[src]

URL to the diff for this edit, as short as possible

Trait Implementations

impl Clone for EditEvent[src]

impl Debug for EditEvent[src]

impl<'de> Deserialize<'de> for EditEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.