ark_rest/models/update_stream_topics_request.rs
1/*
2 * Ark API
3 *
4 * Combined Ark Service, Indexer, Admin, Signer Manager, and Wallet API
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::Deserialize;
13use serde::Serialize;
14
15/// UpdateStreamTopicsRequest : Adding and removing topics can both be supplied in the same request,
16/// allowing for simultaneous changes. overwrite_topics will take precedence, and if set, then the
17/// add/remove topics are ignored. The stream_id is required.
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct UpdateStreamTopicsRequest {
20 #[serde(rename = "modify", skip_serializing_if = "Option::is_none")]
21 pub modify: Option<models::ModifyTopics>,
22 #[serde(rename = "overwrite", skip_serializing_if = "Option::is_none")]
23 pub overwrite: Option<models::OverwriteTopics>,
24 #[serde(rename = "streamId", skip_serializing_if = "Option::is_none")]
25 pub stream_id: Option<String>,
26}
27
28impl UpdateStreamTopicsRequest {
29 /// Adding and removing topics can both be supplied in the same request, allowing for
30 /// simultaneous changes. overwrite_topics will take precedence, and if set, then the add/remove
31 /// topics are ignored. The stream_id is required.
32 pub fn new() -> UpdateStreamTopicsRequest {
33 UpdateStreamTopicsRequest {
34 modify: None,
35 overwrite: None,
36 stream_id: None,
37 }
38 }
39}