pub struct GetGuildOnboarding<'a> { /* private fields */ }
Expand description
Get the onboarding information for a guild.
§Examples
use twilight_http::Client;
use twilight_model::id::Id;
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new("token".to_owned());
let guild_id = Id::new(101);
let onboarding = client.guild_onboarding(guild_id).await?.model().await?;
for prompt in onboarding.prompts {
println!("Prompt: {}", prompt.title);
}
Trait Implementations§
source§impl IntoFuture for GetGuildOnboarding<'_>
impl IntoFuture for GetGuildOnboarding<'_>
source§type Output = Result<Response<Onboarding>, Error>
type Output = Result<Response<Onboarding>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<Onboarding>
type IntoFuture = ResponseFuture<Onboarding>
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 GetGuildOnboarding<'_>
impl TryIntoRequest for GetGuildOnboarding<'_>
Auto Trait Implementations§
impl<'a> Freeze for GetGuildOnboarding<'a>
impl<'a> !RefUnwindSafe for GetGuildOnboarding<'a>
impl<'a> Send for GetGuildOnboarding<'a>
impl<'a> Sync for GetGuildOnboarding<'a>
impl<'a> Unpin for GetGuildOnboarding<'a>
impl<'a> !UnwindSafe for GetGuildOnboarding<'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