pub struct InputStoryContentVideo {
pub video: String,
pub duration: Option<f64>,
pub cover_frame_timestamp: Option<f64>,
pub is_animation: Option<bool>,
}Expand description
A video to post as a story.
Fields§
§video: StringThe video to post.
Must be 720×1280, streamable H.265, with key frames every second, ≤30 MB.
Pass a file_id, HTTP URL, or "attach://<name>" for a multipart upload.
duration: Option<f64>Precise duration of the video in seconds (0–60).
cover_frame_timestamp: Option<f64>Timestamp in seconds of the frame to use as the static cover. Defaults to 0.0.
is_animation: Option<bool>Pass true if the video has no sound.
Trait Implementations§
Source§impl Clone for InputStoryContentVideo
impl Clone for InputStoryContentVideo
Source§fn clone(&self) -> InputStoryContentVideo
fn clone(&self) -> InputStoryContentVideo
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 InputStoryContentVideo
impl Debug for InputStoryContentVideo
Source§impl<'de> Deserialize<'de> for InputStoryContentVideo
impl<'de> Deserialize<'de> for InputStoryContentVideo
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 InputStoryContentVideo
impl RefUnwindSafe for InputStoryContentVideo
impl Send for InputStoryContentVideo
impl Sync for InputStoryContentVideo
impl Unpin for InputStoryContentVideo
impl UnsafeUnpin for InputStoryContentVideo
impl UnwindSafe for InputStoryContentVideo
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