pub struct PlatformTarget {Show 13 fields
pub platform: Option<String>,
pub account_id: Option<Box<PlatformTargetAccountId>>,
pub custom_content: Option<String>,
pub custom_media: Option<Vec<MediaItem>>,
pub scheduled_for: Option<String>,
pub platform_specific_data: Option<Box<PlatformTargetPlatformSpecificData>>,
pub status: Option<String>,
pub platform_post_id: Option<String>,
pub platform_post_url: Option<String>,
pub published_at: Option<String>,
pub error_message: Option<String>,
pub error_category: Option<ErrorCategory>,
pub error_source: Option<ErrorSource>,
}Fields§
§platform: Option<String>Supported values: twitter, threads, instagram, youtube, facebook, linkedin, pinterest, reddit, tiktok, bluesky, googlebusiness, telegram
account_id: Option<Box<PlatformTargetAccountId>>§custom_content: Option<String>Platform-specific text override. When set, this content is used instead of the top-level post content for this platform. Useful for tailoring captions per platform (e.g. keeping tweets under 280 characters).
custom_media: Option<Vec<MediaItem>>§scheduled_for: Option<String>Optional per-platform scheduled time override (uses post.scheduledFor when omitted)
platform_specific_data: Option<Box<PlatformTargetPlatformSpecificData>>§status: Option<String>Platform-specific status: pending, publishing, published, failed
platform_post_id: Option<String>The native post ID on the platform (populated after successful publish)
platform_post_url: Option<String>Public URL of the published post. Included in the response for immediate posts; for scheduled posts, fetch via GET /v1/posts/{postId} after publish time.
published_at: Option<String>Timestamp when the post was published to this platform
error_message: Option<String>Human-readable error message when status is failed. Contains platform-specific error details explaining why the publish failed.
error_category: Option<ErrorCategory>Error category for programmatic handling: auth_expired (token expired/revoked), user_content (wrong format/too long), user_abuse (rate limits/spam), account_issue (config problems), platform_rejected (policy violation), platform_error (5xx/maintenance), system_error (Zernio infra), unknown
error_source: Option<ErrorSource>Who caused the error: user (fix content/reconnect), platform (outage/API change), system (Zernio issue, rare)
Implementations§
Source§impl PlatformTarget
impl PlatformTarget
pub fn new() -> PlatformTarget
Trait Implementations§
Source§impl Clone for PlatformTarget
impl Clone for PlatformTarget
Source§fn clone(&self) -> PlatformTarget
fn clone(&self) -> PlatformTarget
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more