pub struct RustBackendConfig {
pub is_async: bool,
pub response_headers_module: &'static str,
pub response_headers_name: &'static str,
pub struct_generics: Option<String>,
pub client_type_args: Option<String>,
}Expand description
Captures the differences between Rust HTTP backends.
Fields§
§is_async: boolWhether methods are async (reqwest, aioduct) or sync (ureq).
response_headers_module: &'static strModule containing the native header-map type retained on generated responses.
response_headers_name: &'static strNative header-map type retained on generated responses.
struct_generics: Option<String>Extra generic parameters on the Api struct, e.g., "R: aioduct::RuntimePoll".
None for reqwest and ureq.
client_type_args: Option<String>Extra generic args for the client field type, e.g., "<R>".
None for reqwest and ureq.
Auto Trait Implementations§
impl Freeze for RustBackendConfig
impl RefUnwindSafe for RustBackendConfig
impl Send for RustBackendConfig
impl Sync for RustBackendConfig
impl Unpin for RustBackendConfig
impl UnsafeUnpin for RustBackendConfig
impl UnwindSafe for RustBackendConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more