pub struct DeleteBan<'a> { /* private fields */ }Expand description
Remove a ban from a user in a guild.
§Examples
Unban user 200 from guild 100:
use twilight_http::Client;
use twilight_model::id::Id;
let client = Client::new("my token".to_owned());
let guild_id = Id::new(100);
let user_id = Id::new(200);
client.delete_ban(guild_id, user_id).await?;Trait Implementations§
Source§impl<'a> AuditLogReason<'a> for DeleteBan<'a>
impl<'a> AuditLogReason<'a> for DeleteBan<'a>
Source§impl IntoFuture for DeleteBan<'_>
impl IntoFuture for DeleteBan<'_>
Source§type Output = Result<Response<EmptyBody>, Error>
type Output = Result<Response<EmptyBody>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = ResponseFuture<EmptyBody>
type IntoFuture = ResponseFuture<EmptyBody>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DeleteBan<'a>
impl<'a> !UnwindSafe for DeleteBan<'a>
impl<'a> Forget for DeleteBan<'a>
impl<'a> Freeze for DeleteBan<'a>where
PhantomData<fn(GuildMarker) -> GuildMarker>: Freeze,
NonZero<u64>: Freeze,
&'a Client: Freeze,
PhantomData<fn(UserMarker) -> UserMarker>: Freeze,
&'a str: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
&'static str: Freeze,
impl<'a> Move for DeleteBan<'a>
impl<'a> Send for DeleteBan<'a>
impl<'a> Sync for DeleteBan<'a>where
NonZero<u64>: Sync,
RawVecInner: Sync,
BoxRaw<[Pos]>: Sync,
Bytes: Sync,
Arc<Config>: Sync,
Arc<Resolver<GenericConnector<TokioRuntimeProvider>>>: Sync,
Arc<ClientConfig>: Sync,
Arc<dyn ResolveServerName + Send + Sync>: Sync,
Arc<dyn Executor<Pin<Box<dyn Future<Output = ()> + Send>>> + Send + Sync>: Sync,
Arc<dyn Timer + Send + Sync>: Sync,
Arc<Mutex<PoolInner<PoolClient<Full<Bytes>>, (Scheme, Authority)>>>: Sync,
BoxRaw<str>: Sync,
Arc<Chan<(Message, Option<Box<dyn FnOnce(Option<Bucket>) -> bool + Send>>), Semaphore>>: Sync,
Arc<Atomic<bool>>: Sync,
NonZero<i32>: Sync,
impl<'a> Unpin for DeleteBan<'a>
impl<'a> UnsafeUnpin for DeleteBan<'a>where
PhantomData<fn(GuildMarker) -> GuildMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
&'a Client: UnsafeUnpin,
PhantomData<fn(UserMarker) -> UserMarker>: UnsafeUnpin,
&'a str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
&'static str: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more