pub trait WechatHttpTransport: Send + Sync {
// Required methods
fn get(&self, url: &str) -> Result<String, WechatError>;
fn post_json(&self, url: &str, body: &str) -> Result<String, WechatError>;
fn post_form(&self, url: &str, body: &str) -> Result<String, WechatError>;
}Expand description
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".