pub struct Post {Show 38 fields
pub id: PostId,
pub text: Option<String>,
pub media_type: Option<MediaType>,
pub media_url: Option<String>,
pub permalink: Option<String>,
pub timestamp: Option<ThreadsTime>,
pub username: Option<String>,
pub owner: Option<PostOwner>,
pub is_reply: bool,
pub media_product_type: Option<String>,
pub shortcode: Option<String>,
pub thumbnail_url: Option<String>,
pub alt_text: Option<String>,
pub children: Option<ChildrenData>,
pub is_quote_post: bool,
pub link_attachment_url: Option<String>,
pub has_replies: bool,
pub reply_audience: Option<ReplyAudience>,
pub quoted_post: Option<Box<Post>>,
pub reposted_post: Option<Box<Post>>,
pub gif_url: Option<String>,
pub poll_attachment: Option<PollResult>,
pub root_post: Option<Box<Post>>,
pub replied_to: Option<Box<Post>>,
pub is_reply_owned_by_me: bool,
pub hide_status: Option<HideStatus>,
pub topic_tag: Option<String>,
pub ghost_post_status: Option<String>,
pub ghost_post_expiration_timestamp: Option<ThreadsTime>,
pub is_verified: bool,
pub profile_picture_url: Option<String>,
pub reply_approval_status: Option<String>,
pub is_spoiler_media: bool,
pub text_entities: Option<TextEntitiesResponse>,
pub text_attachment: Option<TextAttachment>,
pub allowlisted_country_codes: Option<Vec<String>>,
pub location_id: Option<String>,
pub location: Option<Location>,
}Expand description
A Threads post with all metadata and content.
Fields§
§id: PostIdPost ID.
text: Option<String>Post text content.
media_type: Option<MediaType>Type of media attached.
media_url: Option<String>URL of the attached media.
permalink: Option<String>Permanent link to the post.
timestamp: Option<ThreadsTime>When the post was created.
username: Option<String>Author’s username.
owner: Option<PostOwner>Post owner info.
is_reply: boolWhether this post is a reply.
media_product_type: Option<String>Product type classification.
shortcode: Option<String>Post shortcode.
thumbnail_url: Option<String>Thumbnail URL for video posts.
alt_text: Option<String>Alt text for media.
children: Option<ChildrenData>Child posts for carousels.
is_quote_post: boolWhether this is a quote post.
link_attachment_url: Option<String>Attached link URL.
has_replies: boolWhether the post has replies.
reply_audience: Option<ReplyAudience>Reply audience setting.
quoted_post: Option<Box<Post>>The quoted post, if any.
reposted_post: Option<Box<Post>>The reposted post, if any.
gif_url: Option<String>GIF URL if attached.
poll_attachment: Option<PollResult>Poll results, if any.
root_post: Option<Box<Post>>Root post of the conversation.
replied_to: Option<Box<Post>>Post being replied to.
is_reply_owned_by_me: boolWhether the reply is owned by the authenticated user.
hide_status: Option<HideStatus>Hide status of the post.
topic_tag: Option<String>Topic tag for the post.
ghost_post_status: Option<String>Ghost post status.
ghost_post_expiration_timestamp: Option<ThreadsTime>When the ghost post expires.
is_verified: boolWhether the post author is verified on Threads.
profile_picture_url: Option<String>Profile picture URL of the post author.
reply_approval_status: Option<String>Approval status of a pending reply.
is_spoiler_media: boolWhether the media is marked as a spoiler.
text_entities: Option<TextEntitiesResponse>Text entities in the post content.
text_attachment: Option<TextAttachment>Long-form text attachment.
allowlisted_country_codes: Option<Vec<String>>Allowlisted country codes for geo-gating.
location_id: Option<String>Location ID tagged in the post.
location: Option<Location>Location details tagged in the post.