pub trait AsOptionApiKey {
// Required method
fn api_key(self) -> Option<String>;
}
Expand description
Set an optional API key from various types
For example:
config
.api_key("secret")
.api_key(String::from("secret"))
.api_key(std::env::var("QDRANT_API_KEY"))
.api_key(None::<String>);