Struct twilight_http::request::application::command::GetGuildCommands
source · [−]pub struct GetGuildCommands<'a> { /* private fields */ }
Expand description
Fetch all commands for a guild, by ID.
Implementations
sourceimpl<'a> GetGuildCommands<'a>
impl<'a> GetGuildCommands<'a>
sourcepub const fn with_localizations(self, with_localizations: bool) -> Self
pub const fn with_localizations(self, with_localizations: bool) -> Self
Whether to include full localization dictionaries in the response.
Defaults to false
.
sourcepub fn exec(self) -> ResponseFuture<ListBody<Command>>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<ListBody<Command>>ⓘ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 GetGuildCommands<'_>
impl TryIntoRequest for GetGuildCommands<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GetGuildCommands<'a>
impl<'a> Send for GetGuildCommands<'a>
impl<'a> Sync for GetGuildCommands<'a>
impl<'a> Unpin for GetGuildCommands<'a>
impl<'a> !UnwindSafe for GetGuildCommands<'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