[][src]Struct discord_bots_org::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]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

Blanket Implementations

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

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

type Owned = T

impl<T> From for T
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Erased for T