/*
* 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.4
* 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 SyncExternalPostsRequest {
/// SocialAccount ID whose posts to sync. Must be connected to Zernio.
#[serde(rename = "accountId")]
pub account_id: String,
/// The post URL to locate. Optional. Provide `url` or `postId` to return a specific post; omit both to just refresh and return the account's recent posts.
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
/// The platform post/media/video id to locate, as an alternative to `url`. Optional.
#[serde(rename = "postId", skip_serializing_if = "Option::is_none")]
pub post_id: Option<String>,
}
impl SyncExternalPostsRequest {
pub fn new(account_id: String) -> SyncExternalPostsRequest {
SyncExternalPostsRequest {
account_id,
url: None,
post_id: None,
}
}
}