antimatter_api 2.0.13

Interact with the Antimatter Cloud API
Documentation
/*
 * Antimatter Public API
 *
 * Interact with the Antimatter Cloud API
 *
 * The version of the OpenAPI document: 2.0.13
 * Contact: support@antimatter.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// DomainControlLogResults : The results for a query of the capsule access log 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DomainControlLogResults {
    #[serde(rename = "results")]
    pub results: Vec<models::DomainControlLogEntry>,
    /// if true, there are more results. Query again with start_from_id equal to  the last result's ID to get more results. 
    #[serde(rename = "has_more")]
    pub has_more: bool,
}

impl DomainControlLogResults {
    /// The results for a query of the capsule access log 
    pub fn new(results: Vec<models::DomainControlLogEntry>, has_more: bool) -> DomainControlLogResults {
        DomainControlLogResults {
            results,
            has_more,
        }
    }
}