Skip to main content

ReqwestClientAuth

Trait ReqwestClientAuth 

Source
pub trait ReqwestClientAuth<A> {
    // Required method
    fn auth_state(&self) -> &A;
}
Expand description

Sibling of ReqwestClientCore for clients that carry credentials.

Implemented automatically by ReqwestClient when the carrier struct has a field annotated #[openapi_trait(auth)] (or named auth). The generic A is the generated {Mod}AuthState struct for the spec.

Required Methods§

Source

fn auth_state(&self) -> &A

Borrow the auth-state struct holding configured credentials.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§