qdrant_client::config

Trait AsOptionApiKey

source
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>);

Required Methods§

Implementations on Foreign Types§

source§

impl AsOptionApiKey for &str

source§

impl AsOptionApiKey for Option<&str>

source§

impl AsOptionApiKey for Option<&String>

source§

impl AsOptionApiKey for Option<String>

source§

impl AsOptionApiKey for String

source§

impl<E: Sized> AsOptionApiKey for Result<String, E>

Implementors§