pub enum ApiKey {
Show 13 variants
OpenRouter,
Anthropic,
OpenAi,
Mistral,
ElevenLabs,
Meshy,
Tripo,
Gemini,
Fal,
Moonshot,
Zai,
KimiCode,
Firecrawl,
}Expand description
An API key identifier, not a credential value.
Serialized slugs are a public storage contract. Environment aliases are checked only when the primary variable is absent or is not valid Unicode.
Variants§
OpenRouter
OpenRouter API key.
Anthropic
Anthropic API key.
OpenAi
OpenAI API key.
Mistral
Mistral API key.
ElevenLabs
ElevenLabs API key.
Meshy
Meshy API key.
Tripo
Tripo API key.
Gemini
Gemini API key.
Fal
Fal API key.
Moonshot
Moonshot API key.
Zai
Z.ai API key.
KimiCode
Kimi Code API key.
Firecrawl
Firecrawl API key.
Implementations§
Source§impl ApiKey
impl ApiKey
Sourcepub const fn env_aliases(self) -> &'static [&'static str]
pub const fn env_aliases(self) -> &'static [&'static str]
Accepted environment aliases, in lookup order.
Sourcepub const fn human_readable_name(self) -> &'static str
pub const fn human_readable_name(self) -> &'static str
Name shown to users.
Trait Implementations§
impl Copy for ApiKey
Source§impl<'de> Deserialize<'de> for ApiKey
impl<'de> Deserialize<'de> for ApiKey
Source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApiKey
impl StructuralPartialEq for ApiKey
Auto Trait Implementations§
impl Forget for ApiKey
impl Freeze for ApiKey
impl Move for ApiKey
impl RefUnwindSafe for ApiKey
impl Send for ApiKey
impl Sync for ApiKey
impl Unpin for ApiKey
impl UnsafeUnpin for ApiKey
impl UnwindSafe for ApiKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more