/*
* 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.11.0
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReplyToInboxPostRequest {
#[serde(rename = "accountId")]
pub account_id: String,
#[serde(rename = "message")]
pub message: String,
/// (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.
#[serde(rename = "attachmentUrl", skip_serializing_if = "Option::is_none")]
pub attachment_url: Option<String>,
/// Reply to specific comment (optional)
#[serde(rename = "commentId", skip_serializing_if = "Option::is_none")]
pub comment_id: Option<String>,
/// (Bluesky only) Parent content identifier
#[serde(rename = "parentCid", skip_serializing_if = "Option::is_none")]
pub parent_cid: Option<String>,
/// (Bluesky only) Root post URI
#[serde(rename = "rootUri", skip_serializing_if = "Option::is_none")]
pub root_uri: Option<String>,
/// (Bluesky only) Root post CID
#[serde(rename = "rootCid", skip_serializing_if = "Option::is_none")]
pub root_cid: Option<String>,
}
impl ReplyToInboxPostRequest {
pub fn new(account_id: String, message: String) -> ReplyToInboxPostRequest {
ReplyToInboxPostRequest {
account_id,
message,
attachment_url: None,
comment_id: None,
parent_cid: None,
root_uri: None,
root_cid: None,
}
}
}