[][src]Struct spectacles_model::message::Webhook

pub struct Webhook {
    pub id: String,
    pub guild_id: String,
    pub channel_id: String,
    pub user: User,
    pub name: Option<String>,
    pub avatar_hash: Option<String>,
    pub token: String,
}

A simple solution to post messages in Discord channels from external sources.

Fields

id: String

The webhook ID of this webhook.

guild_id: String

The guild ID of the guild which the webhook belongs to.

channel_id: String

The channel ID of the channel which the webhook belongs to.

user: User

The user who created this webhook.

name: Option<String>

The default name of this webhook.

avatar_hash: Option<String>

The default avatar hash of this webhook.

token: String

The secure token of this webhook.

Trait Implementations

impl Default for Webhook[src]

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<'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
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

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