Skip to main content

lago_types/responses/
api_log.rs

1use crate::models::{ApiLogObject, PaginationMeta};
2use serde::{Deserialize, Serialize};
3
4/// Response containing a list of API logs with pagination metadata.
5///
6/// This struct represents the API response for API log listing requests,
7/// including both the API log data and pagination information.
8#[derive(Debug, Clone, Serialize, Deserialize)]
9pub struct ListApiLogsResponse {
10    pub api_logs: Vec<ApiLogObject>,
11    pub meta: PaginationMeta,
12}
13
14/// Response containing a single API log.
15///
16/// This struct represents the API response for retrieving a specific
17/// API log by its identifier.
18#[derive(Debug, Clone, Serialize, Deserialize)]
19pub struct GetApiLogResponse {
20    pub api_log: ApiLogObject,
21}