1 2 3 4 5 6 7 8 9
use std::borrow::Cow; pub trait Executor: Default + Send + Sync { fn execute<T: serde::de::DeserializeOwned>( &self, url: &str, params: Vec<(&str, Cow<'_, str>)>, ) -> impl Future<Output = Result<T, crate::error::Error>> + Send; }