pub trait Transport {
// Required method
fn post_form(
&self,
url: &str,
fields: &[(&str, &str)],
) -> Result<Value, TransportError>;
}Expand description
One form POST that answers JSON (Accept: application/json). The app supplies it (ureq, reqwest…); tests mock it.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".