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
43
44
45
46
/*
* Hotdata API
*
* Powerful data platform API for managed databases, queries, and analytics.
*
* The version of the OpenAPI document: 1.0.0
* Contact: developers@hotdata.dev
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// GetConnectionResponse : Response body for GET /connections/{connection_id}
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetConnectionResponse {
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "source_type")]
pub source_type: String,
#[serde(rename = "synced_table_count")]
pub synced_table_count: i32,
#[serde(rename = "table_count")]
pub table_count: i32,
}
impl GetConnectionResponse {
/// Response body for GET /connections/{connection_id}
pub fn new(
id: String,
name: String,
source_type: String,
synced_table_count: i32,
table_count: i32,
) -> GetConnectionResponse {
GetConnectionResponse {
id,
name,
source_type,
synced_table_count,
table_count,
}
}
}