pub trait Builder {
type Context<'ctx>;
type Built;
// Required method
fn execute<'life0, 'async_trait>(
self,
cache_http: impl CacheHttp + 'async_trait,
ctx: Self::Context<'life0>,
) -> Pin<Box<dyn Future<Output = Result<Self::Built, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Common trait for all HTTP request builders in this module.
Required Associated Types§
Required Methods§
Sourcefn execute<'life0, 'async_trait>(
self,
cache_http: impl CacheHttp + 'async_trait,
ctx: Self::Context<'life0>,
) -> Pin<Box<dyn Future<Output = Result<Self::Built, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
cache_http: impl CacheHttp + 'async_trait,
ctx: Self::Context<'life0>,
) -> Pin<Box<dyn Future<Output = Result<Self::Built, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Serializes a builder’s fields and sends the request off the API, returning the response.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.