pub trait Execute {
// Required methods
fn request<U>(
&self,
method: Method,
url: U,
body: Option<String>,
) -> Result<Request<Body>, TwilioErr>
where U: AsRef<str>;
fn execute<'life0, 'async_trait, U, D>(
&'life0 self,
method: Method,
url: U,
body: Option<String>,
) -> Pin<Box<dyn Future<Output = TwilioResp<TwilioJson<D>>> + Send + 'async_trait>>
where U: AsRef<str> + Send + 'async_trait,
D: for<'de> Deserialize<'de> + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
fn request<U>( &self, method: Method, url: U, body: Option<String>, ) -> Result<Request<Body>, TwilioErr>
fn execute<'life0, 'async_trait, U, D>(
&'life0 self,
method: Method,
url: U,
body: Option<String>,
) -> Pin<Box<dyn Future<Output = TwilioResp<TwilioJson<D>>> + Send + 'async_trait>>where
U: AsRef<str> + Send + 'async_trait,
D: for<'de> Deserialize<'de> + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
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.