Struct twilight_http::request::guild::GetGuildPreview
source · pub struct GetGuildPreview<'a> { /* private fields */ }
Expand description
For public guilds, get the guild preview.
This works even if the user is not in the guild.
Implementations§
source§impl<'a> GetGuildPreview<'a>
impl<'a> GetGuildPreview<'a>
sourcepub fn exec(self) -> ResponseFuture<GuildPreview> ⓘ
👎Deprecated since 0.14.0: use .await
or into_future
instead
pub fn exec(self) -> ResponseFuture<GuildPreview> ⓘ
.await
or into_future
insteadExecute the request, returning a future resolving to a Response
.
Trait Implementations§
source§impl IntoFuture for GetGuildPreview<'_>
impl IntoFuture for GetGuildPreview<'_>
§type Output = Result<Response<GuildPreview>, Error>
type Output = Result<Response<GuildPreview>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<GuildPreview>
type IntoFuture = ResponseFuture<GuildPreview>
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
source§impl TryIntoRequest for GetGuildPreview<'_>
impl TryIntoRequest for GetGuildPreview<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GetGuildPreview<'a>
impl<'a> Send for GetGuildPreview<'a>
impl<'a> Sync for GetGuildPreview<'a>
impl<'a> Unpin for GetGuildPreview<'a>
impl<'a> !UnwindSafe for GetGuildPreview<'a>
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