revolt_api/models/index_accesses.rs
1/*
2 * Revolt API
3 *
4 * Open source user-first chat platform.
5 *
6 * The version of the OpenAPI document: 0.6.5
7 * Contact: contact@revolt.chat
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// IndexAccesses : Access information
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct IndexAccesses {
17 /// Operations since timestamp
18 #[serde(rename = "ops")]
19 pub ops: i32,
20 /// ISO8601 formatted timestamp
21 #[serde(rename = "since")]
22 pub since: String,
23}
24
25impl IndexAccesses {
26 /// Access information
27 pub fn new(ops: i32, since: String) -> IndexAccesses {
28 IndexAccesses {
29 ops,
30 since,
31 }
32 }
33}
34
35