lago-types 0.1.25

Types definitions for Lago API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};

/// Represents an error response from the API.
///
/// This struct contains the standard error information returned by the API
/// when a request fails, including the HTTP status code, error type, and
/// a descriptive message.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ApiError {
    pub status: u16,
    pub error: String,
    pub message: String,
}