pub struct TextPostContent {Show 15 fields
pub text: String,
pub link_attachment: Option<String>,
pub poll_attachment: Option<PollAttachment>,
pub reply_control: Option<ReplyControl>,
pub reply_to_id: Option<PostId>,
pub topic_tag: Option<String>,
pub allowlisted_country_codes: Option<Vec<String>>,
pub location_id: Option<String>,
pub auto_publish_text: bool,
pub quoted_post_id: Option<PostId>,
pub text_entities: Option<Vec<TextEntity>>,
pub text_attachment: Option<TextAttachment>,
pub gif_attachment: Option<GifAttachment>,
pub is_ghost_post: bool,
pub enable_reply_approvals: bool,
}Expand description
Content for creating a text post.
Fields§
§text: StringPost text content.
link_attachment: Option<String>Link attachment URL.
poll_attachment: Option<PollAttachment>Poll attachment options.
reply_control: Option<ReplyControl>Reply control setting.
reply_to_id: Option<PostId>ID of the post being replied to.
topic_tag: Option<String>Topic tag for the post.
allowlisted_country_codes: Option<Vec<String>>Allowlisted country codes for visibility.
location_id: Option<String>Location ID to tag.
auto_publish_text: boolWhether to auto-publish the text post.
quoted_post_id: Option<PostId>ID of the post being quoted.
text_entities: Option<Vec<TextEntity>>Text entities for spoiler styling.
text_attachment: Option<TextAttachment>Long-form text attachment.
gif_attachment: Option<GifAttachment>GIF attachment.
is_ghost_post: boolWhether this is a ghost post.
enable_reply_approvals: boolWhether reply approvals are enabled.
Trait Implementations§
Source§impl Clone for TextPostContent
impl Clone for TextPostContent
Source§fn clone(&self) -> TextPostContent
fn clone(&self) -> TextPostContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextPostContent
impl Debug for TextPostContent
Source§impl<'de> Deserialize<'de> for TextPostContent
impl<'de> Deserialize<'de> for TextPostContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TextPostContent
impl RefUnwindSafe for TextPostContent
impl Send for TextPostContent
impl Sync for TextPostContent
impl Unpin for TextPostContent
impl UnsafeUnpin for TextPostContent
impl UnwindSafe for TextPostContent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more