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};

/// CapsuleList : List of capsules 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CapsuleList {
    #[serde(rename = "results")]
    pub results: Vec<models::CapsuleInfo>,
    /// if true, there are more results than presented in this response. 
    #[serde(rename = "has_more")]
    pub has_more: bool,
}

impl CapsuleList {
    /// List of capsules 
    pub fn new(results: Vec<models::CapsuleInfo>, has_more: bool) -> CapsuleList {
        CapsuleList {
            results,
            has_more,
        }
    }
}