pub struct NoSkipInputStoryContentVideo {
pub tg_type: String,
pub video: String,
pub duration: Option<OrderedFloat<f64>>,
pub cover_frame_timestamp: Option<OrderedFloat<f64>>,
pub is_animation: Option<bool>,
}Expand description
Companion type to InputStoryContentVideo that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§tg_type: 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: https://core.telegram.org/bots/api#sending-files
duration: Option<OrderedFloat<f64>>§cover_frame_timestamp: Option<OrderedFloat<f64>>§is_animation: Option<bool>Implementations§
Source§impl NoSkipInputStoryContentVideo
impl NoSkipInputStoryContentVideo
pub fn skip(self) -> InputStoryContentVideo
Trait Implementations§
Source§impl Clone for NoSkipInputStoryContentVideo
impl Clone for NoSkipInputStoryContentVideo
Source§fn clone(&self) -> NoSkipInputStoryContentVideo
fn clone(&self) -> NoSkipInputStoryContentVideo
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 NoSkipInputStoryContentVideo
impl Debug for NoSkipInputStoryContentVideo
Source§impl Default for NoSkipInputStoryContentVideo
impl Default for NoSkipInputStoryContentVideo
Source§fn default() -> NoSkipInputStoryContentVideo
fn default() -> NoSkipInputStoryContentVideo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NoSkipInputStoryContentVideo
impl<'de> Deserialize<'de> for NoSkipInputStoryContentVideo
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<NoSkipInputStoryContentVideo> for InputStoryContentVideo
impl From<NoSkipInputStoryContentVideo> for InputStoryContentVideo
Source§fn from(t: NoSkipInputStoryContentVideo) -> Self
fn from(t: NoSkipInputStoryContentVideo) -> Self
Converts to this type from the input type.
Source§impl Hash for NoSkipInputStoryContentVideo
impl Hash for NoSkipInputStoryContentVideo
Source§impl Into<NoSkipInputStoryContentVideo> for InputStoryContentVideo
impl Into<NoSkipInputStoryContentVideo> for InputStoryContentVideo
Source§fn into(self) -> NoSkipInputStoryContentVideo
fn into(self) -> NoSkipInputStoryContentVideo
Converts this type into the (usually inferred) input type.
Source§impl Ord for NoSkipInputStoryContentVideo
impl Ord for NoSkipInputStoryContentVideo
Source§fn cmp(&self, other: &NoSkipInputStoryContentVideo) -> Ordering
fn cmp(&self, other: &NoSkipInputStoryContentVideo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NoSkipInputStoryContentVideo
impl PartialEq for NoSkipInputStoryContentVideo
Source§fn eq(&self, other: &NoSkipInputStoryContentVideo) -> bool
fn eq(&self, other: &NoSkipInputStoryContentVideo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NoSkipInputStoryContentVideo
impl PartialOrd for NoSkipInputStoryContentVideo
impl Eq for NoSkipInputStoryContentVideo
impl StructuralPartialEq for NoSkipInputStoryContentVideo
Auto Trait Implementations§
impl Freeze for NoSkipInputStoryContentVideo
impl RefUnwindSafe for NoSkipInputStoryContentVideo
impl Send for NoSkipInputStoryContentVideo
impl Sync for NoSkipInputStoryContentVideo
impl Unpin for NoSkipInputStoryContentVideo
impl UnsafeUnpin for NoSkipInputStoryContentVideo
impl UnwindSafe for NoSkipInputStoryContentVideo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.