/*
* 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 SocialProvider {
/// CredentialsConfigured is whether this deployment holds every OAuth application credential the network needs. It is a statement about the DEPLOYMENT, not about the caller: a connected account also needs its own access token before a post can go out.
#[serde(rename = "credentialsConfigured", skip_serializing_if = "Option::is_none")]
pub credentials_configured: Option<bool>,
/// MissingCredentials names the environment variables still unset for this network, so the answer is an installation instruction rather than a refusal. Absent when the credentials are complete. Only the NAMES appear here; a credential value is never reported.
#[serde(rename = "missingCredentials", skip_serializing_if = "Option::is_none")]
pub missing_credentials: Option<Vec<String>>,
/// Provider is the network: x, facebook, instagram, linkedin, tiktok, youtube or threads. Example: \"x\"
#[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
pub provider: Option<String>,
}
impl SocialProvider {
pub fn new() -> SocialProvider {
SocialProvider {
credentials_configured: None,
missing_credentials: None,
provider: None,
}
}
}