pub trait Builder<R> {
// Required methods
fn header(&mut self, key: &str, value: HeaderValue);
fn body(&mut self, bytes: Vec<u8>) -> Result<R>;
fn finish(&mut self) -> Result<R>;
}Available on crate features
axum or http-binding or poem or reqwest only.Required Methods§
fn header(&mut self, key: &str, value: HeaderValue)
fn body(&mut self, bytes: Vec<u8>) -> Result<R>
fn finish(&mut self) -> Result<R>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".