Skip to main content

ClientInfo

Trait ClientInfo 

Source
pub trait ClientInfo<Inner> {
    // Required methods
    fn api_version() -> &'static str;
    fn baseurl(&self) -> &str;
    fn client(&self) -> &Client;
    fn inner(&self) -> &Inner;
}
Expand description

Re-exported so downstream crates can call the generated client’s baseurl() / client() accessors — progenitor 0.11+ moved them off the inherent impl into this trait, which must be in scope at the call site. Interface for which an implementation is generated for all clients.

Required Methods§

Source

fn api_version() -> &'static str

Get the version of this API.

This string is pulled directly from the source OpenAPI document and may be in any format the API selects.

Source

fn baseurl(&self) -> &str

Get the base URL to which requests are made.

Source

fn client(&self) -> &Client

Get the internal reqwest::Client used to make requests.

Source

fn inner(&self) -> &Inner

Get the inner value of type T if one is specified.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T, Inner> ClientInfo<Inner> for &T
where T: ClientInfo<Inner>,

Source§

fn api_version() -> &'static str

Source§

fn baseurl(&self) -> &str

Source§

fn client(&self) -> &Client

Source§

fn inner(&self) -> &Inner

Implementors§