Skip to main content

rbx_ds_cloud/api/
response_structs.rs

1//! Some of the responses from the Roblox API are deserialized into these structs,
2//! I suppose this section would not need any documentation because, honestly, I do not know what to write
3
4use serde::{Deserialize, Serialize};
5
6#[derive(Deserialize, Debug)]
7#[allow(non_snake_case)]
8pub struct ListDataStoreIndex {
9    pub name: String,
10    pub createdTime: String,
11}
12
13#[derive(Deserialize, Debug)]
14#[allow(non_snake_case)]
15pub struct ListDataStoresResponse {
16    pub datastores: Vec<ListDataStoreIndex>,
17    pub nextPageCursor: Option<String>,
18}
19
20#[derive(Deserialize, Debug)]
21#[allow(non_snake_case)]
22pub struct ListEntriesIndex {
23    pub scope: String,
24    pub key: String,
25}
26
27#[derive(Deserialize, Debug)]
28#[allow(non_snake_case)]
29pub struct ListEntriesResponse {
30    pub keys: Vec<ListEntriesIndex>,
31    pub nextPageCursor: Option<String>,
32}
33
34#[derive(Deserialize, Debug, Serialize)]
35#[allow(non_snake_case)]
36pub struct EntryVersion {
37    pub version: String,
38    pub deleted: bool,
39    pub contentLength: u64,
40    pub createdTime: String,
41    pub objectCreatedTime: String,
42}
43
44#[derive(Deserialize, Debug)]
45#[allow(non_snake_case)]
46pub struct ListEntryVersionResponse {
47    pub versions: Vec<EntryVersion>,
48    pub nextPageCursor: Option<String>,
49}