/*
* 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). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
*
* The version of the OpenAPI document: 1.513.1
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// BlueskyPlatformData : Bluesky post settings. Supports text posts with up to 4 images or a single video. threadItems creates a reply chain (Bluesky thread). Images exceeding 1MB are automatically compressed. Alt text supported via mediaItem properties. Use langs to tag post language for feed-generator filtering.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BlueskyPlatformData {
/// Language(s) of the post text as 1-3 BCP-47 codes (e.g. \"pt\", \"en-US\"), written to the post record's langs field. Bluesky feed generators filter on it, so posts without it never appear in language-scoped feeds. - Can only be set at creation (Bluesky has no post editing). - With threadItems, every item in the thread carries the same langs. - When omitted, the account's default (set via PATCH /v1/accounts/{accountId}/bluesky-settings) applies. With no default either, the field is absent from the record.
#[serde(rename = "langs", skip_serializing_if = "Option::is_none")]
pub langs: Option<Vec<String>>,
/// Complete sequence of posts in a Bluesky thread. The first item becomes the root post, subsequent items are chained as replies. When threadItems is provided, the top-level content field is used only for display and search purposes, it is NOT published. You must include your first post as threadItems[0].
#[serde(rename = "threadItems", skip_serializing_if = "Option::is_none")]
pub thread_items: Option<Vec<models::TwitterPlatformDataThreadItemsInner>>,
}
impl BlueskyPlatformData {
/// Bluesky post settings. Supports text posts with up to 4 images or a single video. threadItems creates a reply chain (Bluesky thread). Images exceeding 1MB are automatically compressed. Alt text supported via mediaItem properties. Use langs to tag post language for feed-generator filtering.
pub fn new() -> BlueskyPlatformData {
BlueskyPlatformData {
langs: None,
thread_items: None,
}
}
}