pub struct InputStoryContentVideo {
pub kind: String,
pub video: String,
pub duration: Option<f64>,
pub cover_frame_timestamp: Option<f64>,
pub is_animation: Option<bool>,
pub extra: BTreeMap<String, Value>,
}Expand description
Describes a video to post as a story.
Fields§
§kind: StringType of the content, must be video
video: StringThe video to post as a story. The video must be of the size 720x1280, streamable, encoded with H.265 codec, with key frames added each second in the MPEG4 format, and must not exceed 30 MB. The video can’t be reused and can only be uploaded as a new file, so you can pass ‘attach://<file_attach_name>’ if the video was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files
duration: Option<f64>Precise duration of the video in seconds; 0-60
cover_frame_timestamp: Option<f64>Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.
is_animation: Option<bool>Pass True if the video has no sound
extra: BTreeMap<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for InputStoryContentVideo
impl Clone for InputStoryContentVideo
Source§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
Source§impl From<InputStoryContentVideo> for InputStoryContentUnion
impl From<InputStoryContentVideo> for InputStoryContentUnion
Source§fn from(value: InputStoryContentVideo) -> Self
fn from(value: InputStoryContentVideo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputStoryContentVideo
impl PartialEq for InputStoryContentVideo
Source§impl Serialize for InputStoryContentVideo
impl Serialize for InputStoryContentVideo
impl StructuralPartialEq for InputStoryContentVideo
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