pub trait ApiRequest: Serialize + Send {
const PATH: &'static str;
const METHOD: Method = http::Method::POST;
// Provided method
fn absolute_url(&self, base: &Uri) -> Result<Uri, Error> { ... }
}
Expand description
A request that can be made against the Ipfs API.
Required Associated Constants§
Provided Associated Constants§
Provided Methods§
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.