Trait RequestInfo

Source
pub trait RequestInfo {
    const BASE_URL: &'static str;

    // Required method
    fn client(&self) -> &Client;
}
Expand description

Trait to provide some basic info about API

Required Associated Constants§

Source

const BASE_URL: &'static str

The base URL for the requests.

Required Methods§

Source

fn client(&self) -> &Client

Returns the reqwest::Client instance associated with the API client.

The client is used to send HTTP requests to the API.

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.

Implementors§