pub struct VideoPostContent {
pub text: Option<String>,
pub video_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 a video post.
Fields§
§text: Option<String>Post text content.
video_url: StringVideo URL.
alt_text: Option<String>Alt text for the video.
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 VideoPostContent
impl Clone for VideoPostContent
Source§fn clone(&self) -> VideoPostContent
fn clone(&self) -> VideoPostContent
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 VideoPostContent
impl Debug for VideoPostContent
Source§impl<'de> Deserialize<'de> for VideoPostContent
impl<'de> Deserialize<'de> for VideoPostContent
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 VideoPostContent
impl RefUnwindSafe for VideoPostContent
impl Send for VideoPostContent
impl Sync for VideoPostContent
impl Unpin for VideoPostContent
impl UnsafeUnpin for VideoPostContent
impl UnwindSafe for VideoPostContent
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