Struct twilight_http::request::application::command::GetGlobalCommands
source · [−]pub struct GetGlobalCommands<'a> { /* private fields */ }
Expand description
Retrieve all global commands for an application.
Implementations
sourceimpl<'a> GetGlobalCommands<'a>
impl<'a> GetGlobalCommands<'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 GetGlobalCommands<'_>
impl TryIntoRequest for GetGlobalCommands<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GetGlobalCommands<'a>
impl<'a> Send for GetGlobalCommands<'a>
impl<'a> Sync for GetGlobalCommands<'a>
impl<'a> Unpin for GetGlobalCommands<'a>
impl<'a> !UnwindSafe for GetGlobalCommands<'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