k2db-api-client 0.1.1

Rust HTTP client for the k2db API
Documentation
// SPDX-FileCopyrightText: 2026 Alexander R. Croft
// SPDX-License-Identifier: MIT

use k2db_api_contract::ProblemDetailsPayload;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum K2DbApiClientError {
    #[error("request failed: {0}")]
    Http(#[from] reqwest::Error),
    #[error("transport error: {0}")]
    Transport(String),
    #[error("server returned problem response")]
    Problem(ProblemDetailsPayload),
    #[error("invalid client configuration: {0}")]
    Configuration(String),
    #[error("serialization error: {0}")]
    Serialization(String),
}