Trait Execute

Source
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§

Source

fn request<U>( &self, method: Method, url: U, body: Option<String>, ) -> Result<Request<Body>, TwilioErr>
where U: AsRef<str>,

Source

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.

Implementors§

Source§

impl<'a> Execute for Conferences<'a>

Source§

impl<'a> Execute for GetConference<'a>

Source§

impl<'a> Execute for GetMessage<'a>

Source§

impl<'a> Execute for GetRecording<'a>

Source§

impl<'a> Execute for Messages<'a>

Source§

impl<'a> Execute for MessagesDetails<'a>

Source§

impl<'a> Execute for Recordings<'a>

Source§

impl<'a> Execute for SendCall<'a>

Source§

impl<'a> Execute for SendMsg<'a>