/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
*
* The version of the OpenAPI document: 1.63.0
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// SelectSnapchatProfileRequestSelectedPublicProfile : The selected Snapchat Public Profile
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SelectSnapchatProfileRequestSelectedPublicProfile {
/// Snapchat Public Profile ID
#[serde(rename = "id")]
pub id: String,
/// Display name of the public profile
#[serde(rename = "display_name")]
pub display_name: String,
/// Username/handle
#[serde(rename = "username", skip_serializing_if = "Option::is_none")]
pub username: Option<String>,
/// Profile image URL
#[serde(rename = "profile_image_url", skip_serializing_if = "Option::is_none")]
pub profile_image_url: Option<String>,
/// Number of subscribers
#[serde(rename = "subscriber_count", skip_serializing_if = "Option::is_none")]
pub subscriber_count: Option<i32>,
}
impl SelectSnapchatProfileRequestSelectedPublicProfile {
/// The selected Snapchat Public Profile
pub fn new(
id: String,
display_name: String,
) -> SelectSnapchatProfileRequestSelectedPublicProfile {
SelectSnapchatProfileRequestSelectedPublicProfile {
id,
display_name,
username: None,
profile_image_url: None,
subscriber_count: None,
}
}
}