Trait cog_rust::CogResponse

source ·
pub trait CogResponse: Send {
    // Required method
    fn into_response<'async_trait>(
        self,
        upload_url: Request<Value>
    ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait, Global>>
       where Self: 'async_trait;
}
Expand description

A response from a cog

Required Methods§

source

fn into_response<'async_trait>( self, upload_url: Request<Value> ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait, Global>>where Self: 'async_trait,

Implementors§

source§

impl CogResponse for Path

source§

impl<T> CogResponse for Twhere T: Serialize + Send,