ibkr_cp_api_client/models/
tickle.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
4#[serde(rename_all = "camelCase")]
5#[serde(default)]
6pub struct Tickle {
7    pub collission: bool,
8    pub iserver: Iserver,
9    pub session: String,
10    pub sso_expires: i64,
11    pub user_id: i64,
12}
13
14#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
15#[serde(rename_all = "camelCase")]
16pub struct Iserver {
17    pub auth_status: AuthStatus,
18}
19
20#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
21#[serde(rename_all = "camelCase")]
22#[serde(default)]
23pub struct AuthStatus {
24    #[serde(rename = "MAC")]
25    pub mac: String,
26    pub authenticated: bool,
27    pub competing: bool,
28    pub connected: bool,
29    pub message: String,
30    pub server_info: ServerInfo,
31    pub fail: String,
32}
33
34#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
35#[serde(rename_all = "camelCase")]
36#[serde(default)]
37pub struct ServerInfo {
38    pub server_name: String,
39    pub server_version: String,
40}