Skip to main content

late/models/
reply_to_inbox_post_request.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ReplyToInboxPostRequest {
16    #[serde(rename = "accountId")]
17    pub account_id: String,
18    #[serde(rename = "message")]
19    pub message: String,
20    /// (Facebook only) URL of an image to attach, publishing a photo comment alongside the text. The URL must be publicly accessible so Meta can fetch it. Returns 400 for other platforms.
21    #[serde(rename = "attachmentUrl", skip_serializing_if = "Option::is_none")]
22    pub attachment_url: Option<String>,
23    /// Reply to specific comment (optional)
24    #[serde(rename = "commentId", skip_serializing_if = "Option::is_none")]
25    pub comment_id: Option<String>,
26    /// (Bluesky only) Parent content identifier
27    #[serde(rename = "parentCid", skip_serializing_if = "Option::is_none")]
28    pub parent_cid: Option<String>,
29    /// (Bluesky only) Root post URI
30    #[serde(rename = "rootUri", skip_serializing_if = "Option::is_none")]
31    pub root_uri: Option<String>,
32    /// (Bluesky only) Root post CID
33    #[serde(rename = "rootCid", skip_serializing_if = "Option::is_none")]
34    pub root_cid: Option<String>,
35}
36
37impl ReplyToInboxPostRequest {
38    pub fn new(account_id: String, message: String) -> ReplyToInboxPostRequest {
39        ReplyToInboxPostRequest {
40            account_id,
41            message,
42            attachment_url: None,
43            comment_id: None,
44            parent_cid: None,
45            root_uri: None,
46            root_cid: None,
47        }
48    }
49}