zernio 0.0.76

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
Documentation
/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.1
 * 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,
        }
    }
}