pub struct UpdateWebhookBodyBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> UpdateWebhookBodyBuilder<S>
impl<S: State> UpdateWebhookBodyBuilder<S>
Sourcepub fn build(self) -> UpdateWebhookBodywhere
S: IsComplete,
pub fn build(self) -> UpdateWebhookBodywhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn name(
self,
value: impl Into<String>,
) -> UpdateWebhookBodyBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<String>,
) -> UpdateWebhookBodyBuilder<SetName<S>>where
S::Name: IsUnset,
Sourcepub fn maybe_name(
self,
value: Option<impl Into<String>>,
) -> UpdateWebhookBodyBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<String>>,
) -> UpdateWebhookBodyBuilder<SetName<S>>where
S::Name: IsUnset,
Sourcepub fn avatar(
self,
value: impl Into<String>,
) -> UpdateWebhookBodyBuilder<SetAvatar<S>>where
S::Avatar: IsUnset,
pub fn avatar(
self,
value: impl Into<String>,
) -> UpdateWebhookBodyBuilder<SetAvatar<S>>where
S::Avatar: IsUnset,
Sourcepub fn maybe_avatar(
self,
value: Option<impl Into<String>>,
) -> UpdateWebhookBodyBuilder<SetAvatar<S>>where
S::Avatar: IsUnset,
pub fn maybe_avatar(
self,
value: Option<impl Into<String>>,
) -> UpdateWebhookBodyBuilder<SetAvatar<S>>where
S::Avatar: IsUnset,
Sourcepub fn channel_id(
self,
value: Id<ChannelMarker>,
) -> UpdateWebhookBodyBuilder<SetChannelId<S>>where
S::ChannelId: IsUnset,
pub fn channel_id(
self,
value: Id<ChannelMarker>,
) -> UpdateWebhookBodyBuilder<SetChannelId<S>>where
S::ChannelId: IsUnset,
Sourcepub fn maybe_channel_id(
self,
value: Option<Id<ChannelMarker>>,
) -> UpdateWebhookBodyBuilder<SetChannelId<S>>where
S::ChannelId: IsUnset,
pub fn maybe_channel_id(
self,
value: Option<Id<ChannelMarker>>,
) -> UpdateWebhookBodyBuilder<SetChannelId<S>>where
S::ChannelId: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for UpdateWebhookBodyBuilder<S>
impl<S> RefUnwindSafe for UpdateWebhookBodyBuilder<S>
impl<S> Send for UpdateWebhookBodyBuilder<S>
impl<S> Sync for UpdateWebhookBodyBuilder<S>
impl<S> Unpin for UpdateWebhookBodyBuilder<S>
impl<S> UnsafeUnpin for UpdateWebhookBodyBuilder<S>
impl<S> UnwindSafe for UpdateWebhookBodyBuilder<S>
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