[][src]Struct top_gg::model::Webhook

pub struct Webhook {
    pub bot: String,
    pub is_weekend: bool,
    pub kind: WebhookType,
    pub query: String,
    pub user_id: String,
}

Information about an incoming webhook.

Fields

bot: String

ID of the bot that received a vote.

is_weekend: bool

Whether the weekend multiple is in effect.

This means user votes count as two.

kind: WebhookType

The type of the vote.

query: String

The query param string found on the vote page.

Examples

?a=1&b=2

user_id: String

The ID of the user who voted.

Trait Implementations

impl Clone for Webhook[src]

impl Debug for Webhook[src]

impl Serialize for Webhook[src]

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

Auto Trait Implementations

impl Send for Webhook

impl Sync for Webhook

impl Unpin for Webhook

impl UnwindSafe for Webhook

impl RefUnwindSafe for Webhook

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

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