pub trait Config:
Debug
+ Clone
+ Send
+ Sync {
// Required methods
fn headers(&self) -> Result<HeaderMap, Error>;
fn url(&self, path: &str) -> String;
fn query(&self) -> Vec<(&str, &str)>;
fn base_url(&self) -> &str;
fn api_key(&self) -> Option<&SecretString>;
// Provided method
fn stream_done_message(&self) -> &'static str { ... }
}
Required Methods§
fn headers(&self) -> Result<HeaderMap, Error>
fn url(&self, path: &str) -> String
fn query(&self) -> Vec<(&str, &str)>
fn base_url(&self) -> &str
fn api_key(&self) -> Option<&SecretString>
Provided Methods§
fn stream_done_message(&self) -> &'static str
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.