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>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<GuildWidget>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
Execute the request, returning a future resolving to a Response
.
Trait Implementations
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