antimatter_api/models/
access_log_results.rs

1/*
2 * Antimatter Public API
3 *
4 * Interact with the Antimatter Cloud API
5 *
6 * The version of the OpenAPI document: 2.0.13
7 * Contact: support@antimatter.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AccessLogResults : The results for a query of the capsule access log 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AccessLogResults {
17    #[serde(rename = "results")]
18    pub results: Vec<models::AccessLogEntry>,
19    /// if true, there are more results. Query again with start_from_id equal to  the last result's ID to get more results. 
20    #[serde(rename = "has_more")]
21    pub has_more: bool,
22}
23
24impl AccessLogResults {
25    /// The results for a query of the capsule access log 
26    pub fn new(results: Vec<models::AccessLogEntry>, has_more: bool) -> AccessLogResults {
27        AccessLogResults {
28            results,
29            has_more,
30        }
31    }
32}
33