Skip to main content

late/models/
snapchat_platform_data.rs

1/*
2 * Zernio API
3 *
4 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5 *
6 * The version of the OpenAPI document: 1.0.4
7 * Contact: support@zernio.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SnapchatPlatformData : Requires a Public Profile. Single media item only. Content types: story (ephemeral 24h), saved_story (permanent, title max 45 chars), spotlight (video, max 160 chars).
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SnapchatPlatformData {
17    /// Content type: story (ephemeral 24h, default), saved_story (permanent on Public Profile), spotlight (video feed)
18    #[serde(rename = "contentType", skip_serializing_if = "Option::is_none")]
19    pub content_type: Option<ContentType>,
20}
21
22impl SnapchatPlatformData {
23    /// Requires a Public Profile. Single media item only. Content types: story (ephemeral 24h), saved_story (permanent, title max 45 chars), spotlight (video, max 160 chars).
24    pub fn new() -> SnapchatPlatformData {
25        SnapchatPlatformData { content_type: None }
26    }
27}
28/// Content type: story (ephemeral 24h, default), saved_story (permanent on Public Profile), spotlight (video feed)
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum ContentType {
31    #[serde(rename = "story")]
32    Story,
33    #[serde(rename = "saved_story")]
34    SavedStory,
35    #[serde(rename = "spotlight")]
36    Spotlight,
37}
38
39impl Default for ContentType {
40    fn default() -> ContentType {
41        Self::Story
42    }
43}