pub struct Webhook {
pub application_id: Option<Id<ApplicationMarker>>,
pub avatar: Option<ImageHash>,
pub channel_id: Id<ChannelMarker>,
pub guild_id: Option<Id<GuildMarker>>,
pub id: Id<WebhookMarker>,
pub kind: WebhookType,
pub name: Option<String>,
pub source_channel: Option<WebhookChannel>,
pub source_guild: Option<WebhookGuild>,
pub token: Option<String>,
pub url: Option<String>,
pub user: Option<User>,
}Fields
application_id: Option<Id<ApplicationMarker>>avatar: Option<ImageHash>channel_id: Id<ChannelMarker>guild_id: Option<Id<GuildMarker>>id: Id<WebhookMarker>kind: WebhookTypename: Option<String>source_channel: Option<WebhookChannel>Partial channel object that a webhook is following.
source_guild: Option<WebhookGuild>Partial guild object that a webhook is following.
token: Option<String>url: Option<String>Url used for executing the webhook.
Returned by the webhooks OAuth2 flow.
user: Option<User>Trait Implementations
sourceimpl<'de> Deserialize<'de> for Webhook
impl<'de> Deserialize<'de> for Webhook
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Webhook> for Webhook
impl PartialEq<Webhook> for Webhook
impl Eq for Webhook
impl StructuralEq for Webhook
impl StructuralPartialEq for Webhook
Auto Trait Implementations
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnwindSafe for Webhook
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more