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
41
42
// this file is @generated
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
pub struct ClickhouseConfigIn {
/// The HTTP URL of the ClickHouse server (e.g. `https://my_clickhouse:8443`).
pub url: String,
/// Username to access Clickhouse.
///
/// Currently a required field, but marked as optional because we may add
/// different authentication in the future.
#[serde(skip_serializing_if = "Option::is_none")]
pub username: Option<String>,
/// Password to access Clickhouse.
///
/// Currently a required field, but marked as optional because we may add
/// different authentication in the future.
#[serde(skip_serializing_if = "Option::is_none")]
pub password: Option<String>,
/// The Clickhouse database to connect to.
#[serde(skip_serializing_if = "Option::is_none")]
pub database: Option<String>,
/// The Clickhouse table to write to.
#[serde(rename = "tableName")]
pub table_name: String,
}
impl ClickhouseConfigIn {
pub fn new(url: String, table_name: String) -> Self {
Self {
url,
username: None,
password: None,
database: None,
table_name,
}
}
}