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

/// CapsuleSealRequest : Information applied when sealing a capsule (marking it as complete) 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CapsuleSealRequest {
    #[serde(rename = "capsuleTags")]
    pub capsule_tags: Vec<models::Tag>,
    #[serde(rename = "spanTags")]
    pub span_tags: Box<models::TagSummary>,
    /// how big this capsule is
    #[serde(rename = "size")]
    pub size: i64,
    /// how many rows this capsule has
    #[serde(rename = "rows")]
    pub rows: i64,
}

impl CapsuleSealRequest {
    /// Information applied when sealing a capsule (marking it as complete) 
    pub fn new(capsule_tags: Vec<models::Tag>, span_tags: models::TagSummary, size: i64, rows: i64) -> CapsuleSealRequest {
        CapsuleSealRequest {
            capsule_tags,
            span_tags: Box::new(span_tags),
            size,
            rows,
        }
    }
}