pub struct CarouselPostContent {
pub text: Option<String>,
pub children: Vec<ContainerId>,
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 a carousel post.
Fields§
§text: Option<String>Post text content.
children: Vec<ContainerId>Container IDs for the carousel items.
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 CarouselPostContent
impl Clone for CarouselPostContent
Source§fn clone(&self) -> CarouselPostContent
fn clone(&self) -> CarouselPostContent
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 CarouselPostContent
impl Debug for CarouselPostContent
Source§impl<'de> Deserialize<'de> for CarouselPostContent
impl<'de> Deserialize<'de> for CarouselPostContent
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 CarouselPostContent
impl RefUnwindSafe for CarouselPostContent
impl Send for CarouselPostContent
impl Sync for CarouselPostContent
impl Unpin for CarouselPostContent
impl UnsafeUnpin for CarouselPostContent
impl UnwindSafe for CarouselPostContent
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