Struct twilight_http::request::guild::UpdateGuildWidget
source · pub struct UpdateGuildWidget<'a> { /* private fields */ }
Expand description
Modify the guild widget.
Implementations
sourceimpl<'a> UpdateGuildWidget<'a>
impl<'a> UpdateGuildWidget<'a>
sourcepub const fn channel_id(self, channel_id: Option<Id<ChannelMarker>>) -> Self
pub const fn channel_id(self, channel_id: Option<Id<ChannelMarker>>) -> Self
Set which channel to display on the widget.
sourcepub fn exec(self) -> ResponseFuture<GuildWidget> ⓘ
👎Deprecated since 0.14.0: use .await
or into_future
instead
pub fn exec(self) -> ResponseFuture<GuildWidget> ⓘ
.await
or into_future
insteadExecute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl IntoFuture for UpdateGuildWidget<'_>
impl IntoFuture for UpdateGuildWidget<'_>
type Output = Result<Response<GuildWidget>, Error>
type Output = Result<Response<GuildWidget>, Error>
The output that the future will produce on completion.
type IntoFuture = ResponseFuture<GuildWidget>
type IntoFuture = ResponseFuture<GuildWidget>
Which kind of future are we turning this into?
sourcefn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
sourceimpl TryIntoRequest for UpdateGuildWidget<'_>
impl TryIntoRequest for UpdateGuildWidget<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for UpdateGuildWidget<'a>
impl<'a> Send for UpdateGuildWidget<'a>
impl<'a> Sync for UpdateGuildWidget<'a>
impl<'a> Unpin for UpdateGuildWidget<'a>
impl<'a> !UnwindSafe for UpdateGuildWidget<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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