Module auth

Module auth 

Source
Expand description

Authentication providers for Gemini API connections.

This module defines the AuthProvider trait and built-in implementations for Google AI (API key and OAuth2 token) and Vertex AI (Bearer token).

The ServiceEndpoint enum allows constructing URLs for both WebSocket (Live) and REST API endpoints from the same auth provider.

Re-exports§

pub use google_ai::*;
pub use vertex::*;

Modules§

google_ai
Google AI authentication providers (API key and OAuth2 token).
vertex
Vertex AI Bearer token authentication.

Enums§

ServiceEndpoint
Identifies which Gemini API service to connect to.

Traits§

AuthProvider
Provides authentication credentials and URL construction for Gemini API connections.