Struct twilight_http::request::application::command::UpdateCommandPermissions
source · [−]pub struct UpdateCommandPermissions<'a> { /* private fields */ }
Expand description
Update command permissions for a single command in a guild.
Note:
This overwrites the command permissions so the full set of permissions have to be sent every time.
Implementations
sourceimpl<'a> UpdateCommandPermissions<'a>
impl<'a> UpdateCommandPermissions<'a>
sourcepub fn exec(self) -> ResponseFuture<ListBody<CommandPermissions>>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<ListBody<CommandPermissions>>ⓘ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 UpdateCommandPermissions<'_>
impl TryIntoRequest for UpdateCommandPermissions<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for UpdateCommandPermissions<'a>
impl<'a> Send for UpdateCommandPermissions<'a>
impl<'a> Sync for UpdateCommandPermissions<'a>
impl<'a> Unpin for UpdateCommandPermissions<'a>
impl<'a> !UnwindSafe for UpdateCommandPermissions<'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