[][src]Struct eventstreams::LogEvent

pub struct LogEvent {
    pub namespace: i32,
    pub title: String,
    pub comment: String,
    pub parsedcomment: String,
    pub timestamp: u32,
    pub user: String,
    pub bot: bool,
    pub log_id: u32,
    pub log_type: String,
    pub log_action: String,
    pub log_params: Value,
    pub log_action_comment: String,
    pub server_url: String,
    pub server_name: String,
    pub server_script_path: String,
    pub wiki: String,
    // some fields omitted
}

Represents a log entry

Fields

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)

log_id: u32log_type: Stringlog_action: Stringlog_params: Valuelog_action_comment: Stringserver_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 LogEvent[src]

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

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

Trait Implementations

impl Clone for LogEvent[src]

impl Debug for LogEvent[src]

impl<'de> Deserialize<'de> for LogEvent[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.