Skip to main content

asimov_luma_module/api/models/
common.rs

1// This is free and unencumbered software released into the public domain.
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Deserialize, Serialize)]
6pub struct Pagination<T = serde_json::Value> {
7    pub entries: Vec<T>,
8    pub has_more: bool,
9    pub next_cursor: Option<String>,
10}
11
12#[derive(Debug, Deserialize, Serialize)]
13pub struct Root<T = serde_json::Value> {
14    pub infos: Vec<T>,
15}