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
47
48
/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SocialAccount {
/// CreatedAt is when the account was connected, as a unix timestamp in seconds.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<i32>,
/// Handle is the account's public name on the network, as the customer knows it. Trimmed and bounded at 1024 characters. Example: \"@acme\"
#[serde(rename = "handle", skip_serializing_if = "Option::is_none")]
pub handle: Option<String>,
/// ID is the account's identifier, minted on connect and the id every later call addresses it by. Example: \"acct_7f3c1a\"
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Provider is the network this account is on: x, facebook, instagram, linkedin, tiktok, youtube or threads. Example: \"x\"
#[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
pub provider: Option<String>,
/// Status is the connection lifecycle: connected, disconnected or error. Only a connected account is a publish target.
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
/// UpdatedAt is when the account row last changed, as a unix timestamp in seconds. The listing is ordered by it, newest first.
#[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<i32>,
}
impl SocialAccount {
pub fn new() -> SocialAccount {
SocialAccount {
created_at: None,
handle: None,
id: None,
provider: None,
status: None,
updated_at: None,
}
}
}