Skip to main content

hanzo_client/models/
channel.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Channel {
16    /// Disabled is true for a channel the org switched off at the social edge. It is still listed — this is what the org has CONNECTED, not what it can post to — but a publish never targets it, neither by name nor as part of the \"every channel\" default.
17    #[serde(rename = "disabled", skip_serializing_if = "Option::is_none")]
18    pub disabled: Option<bool>,
19    /// ID is the social integration id a post targets. It is the exact value to put in a content item's `channels` list to reach this one connected account.
20    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
21    pub id: Option<String>,
22    /// Name is the account label as the org connected it — the handle a human recognises. It is never an address: a publish resolves channels by ID or by Provider and never by this.
23    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24    pub name: Option<String>,
25    /// Provider is the network behind the integration: \"x\", \"instagram\", \"tiktok\" and the rest of what the org connected. Naming a provider in a publish targets EVERY connected account of it, so it is the coarse handle where ID is the precise one.
26    #[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
27    pub provider: Option<String>,
28}
29
30impl Channel {
31    pub fn new() -> Channel {
32        Channel {
33            disabled: None,
34            id: None,
35            name: None,
36            provider: None,
37        }
38    }
39}
40