1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* 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};
/// FacebookPlatformData : Feed posts support up to 10 images (no mixed video+image). Stories require single media (24h, no captions). Reels require single vertical video (9:16, 3-60s).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FacebookPlatformData {
/// Set to 'story' for Page Stories (24h ephemeral) or 'reel' for Reels (short vertical video). Defaults to feed post if omitted.
#[serde(rename = "contentType", skip_serializing_if = "Option::is_none")]
pub content_type: Option<ContentType>,
/// Reel title (only for contentType=reel). Separate from the caption/content field.
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
/// Optional first comment to post immediately after publishing (feed posts only, not stories or reels)
#[serde(rename = "firstComment", skip_serializing_if = "Option::is_none")]
pub first_comment: Option<String>,
/// Target Facebook Page ID for multi-page posting. If omitted, uses the default page. Use GET /v1/accounts/{id}/facebook-page to list pages.
#[serde(rename = "pageId", skip_serializing_if = "Option::is_none")]
pub page_id: Option<String>,
}
impl FacebookPlatformData {
/// Feed posts support up to 10 images (no mixed video+image). Stories require single media (24h, no captions). Reels require single vertical video (9:16, 3-60s).
pub fn new() -> FacebookPlatformData {
FacebookPlatformData {
content_type: None,
title: None,
first_comment: None,
page_id: None,
}
}
}
/// Set to 'story' for Page Stories (24h ephemeral) or 'reel' for Reels (short vertical video). Defaults to feed post if omitted.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ContentType {
#[serde(rename = "story")]
Story,
#[serde(rename = "reel")]
Reel,
}
impl Default for ContentType {
fn default() -> ContentType {
Self::Story
}
}