gemini_crate 0.1.0

A robust Rust client library for Google's Gemini AI API with built-in error handling, retry logic, and comprehensive model support
Documentation
//! This module contains the error types for the Gemini client.
use thiserror::Error;

/// The custom error type for this crate.
#[derive(Error, Debug)]
pub enum Error {
    /// An error related to network requests.
    #[error("Network error: {0}")]
    Network(#[from] reqwest::Error),

    /// An error related to JSON serialization or deserialization.
    #[error("JSON error: {0}")]
    Json(reqwest::Error),

    /// An error from the Gemini API.
    #[error("API error: {0}")]
    Api(String),

    /// An error related to configuration.
    #[error("Configuration error: {0}")]
    Config(String),
}