pub trait ProviderClient {
type Input;
// Required methods
fn from_env() -> Self;
fn from_val(input: Self::Input) -> Self;
}Expand description
Abstracts over the ability to instantiate a client, either via environment variables or some
Self::Input
Required Associated Types§
Required Methods§
Sourcefn from_env() -> Self
fn from_env() -> Self
Create a client from the process’s environment. Panics if an environment is improperly configured.
fn from_val(input: Self::Input) -> Self
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.