pub struct ImagePostContent {
pub text: Option<String>,
pub image_url: String,
pub alt_text: Option<String>,
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 quoted_post_id: Option<PostId>,
pub text_entities: Option<Vec<TextEntity>>,
pub is_spoiler_media: bool,
pub enable_reply_approvals: bool,
}Expand description
Content for creating an image post.
Fields§
§text: Option<String>Post text content.
image_url: StringImage URL.
alt_text: Option<String>Alt text for the image.
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.
quoted_post_id: Option<PostId>ID of the post being quoted.
text_entities: Option<Vec<TextEntity>>Text entities for spoiler styling.
is_spoiler_media: boolWhether the media is marked as a spoiler.
enable_reply_approvals: boolWhether reply approvals are enabled.
Trait Implementations§
Source§impl Clone for ImagePostContent
impl Clone for ImagePostContent
Source§fn clone(&self) -> ImagePostContent
fn clone(&self) -> ImagePostContent
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 ImagePostContent
impl Debug for ImagePostContent
Source§impl<'de> Deserialize<'de> for ImagePostContent
impl<'de> Deserialize<'de> for ImagePostContent
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 ImagePostContent
impl RefUnwindSafe for ImagePostContent
impl Send for ImagePostContent
impl Sync for ImagePostContent
impl Unpin for ImagePostContent
impl UnsafeUnpin for ImagePostContent
impl UnwindSafe for ImagePostContent
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