#[non_exhaustive]pub struct ModifyWebhook {
pub name: Option<CompactString>,
pub avatar: Patch<ImageData>,
pub channel_id: Option<ChannelId>,
}Expand description
The body of Modify Webhook
and Modify Webhook with Token (which does not accept channel_id).
discord.js counterpart: WebhookEditOptions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<CompactString>The default name.
avatar: Patch<ImageData>The default avatar.
channel_id: Option<ChannelId>The channel to move the webhook to (not with a token).
Trait Implementations§
Source§impl Clone for ModifyWebhook
impl Clone for ModifyWebhook
Source§impl Debug for ModifyWebhook
impl Debug for ModifyWebhook
Source§impl Default for ModifyWebhook
impl Default for ModifyWebhook
impl Eq for ModifyWebhook
Source§impl Hash for ModifyWebhook
impl Hash for ModifyWebhook
Source§impl PartialEq for ModifyWebhook
impl PartialEq for ModifyWebhook
Source§impl Serialize for ModifyWebhook
impl Serialize for ModifyWebhook
impl StructuralPartialEq for ModifyWebhook
Auto Trait Implementations§
impl !Freeze for ModifyWebhook
impl RefUnwindSafe for ModifyWebhook
impl Send for ModifyWebhook
impl Sync for ModifyWebhook
impl Unpin for ModifyWebhook
impl UnsafeUnpin for ModifyWebhook
impl UnwindSafe for ModifyWebhook
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more