1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* 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,
}
}
}