[−][src]Struct eventstreams::EditEvent
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for EditEvent
impl Send for EditEvent
impl Sync for EditEvent
impl Unpin for EditEvent
impl UnwindSafe for EditEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,