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
/*
* 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};
/// AddWriteContext : Information for adding/updating a write context
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddWriteContext {
/// A short, single sentence description of this write context
#[serde(rename = "summary")]
pub summary: String,
/// A longer form description of this write context
#[serde(rename = "description")]
pub description: String,
#[serde(rename = "config")]
pub config: Box<models::WriteContextConfigInfo>,
}
impl AddWriteContext {
/// Information for adding/updating a write context
pub fn new(summary: String, description: String, config: models::WriteContextConfigInfo) -> AddWriteContext {
AddWriteContext {
summary,
description,
config: Box::new(config),
}
}
}