Skip to main content

BaseClient

Trait BaseClient 

Source
pub trait BaseClient {
    // Required method
    fn http_client(&self) -> &ReqwestClient;
}
Expand description

Base trait for HTTP clients that provides access to the underlying reqwest client.

This trait is implemented by both authenticated and unauthenticated clients, allowing generic code to work with either type.

Required Methods§

Source

fn http_client(&self) -> &ReqwestClient

Returns a reference to the underlying reqwest HTTP client.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BaseClient for Client

Implementors§