pub struct InputPaidMediaTypeVideo {
pub cover: Option<InputFile>,
pub start_timestamp: i32,
pub duration: i32,
pub supports_streaming: bool,
}Expand description
The media is a video
Fields§
§cover: Option<InputFile>Cover of the video; pass null to skip cover uploading
start_timestamp: i32Timestamp from which the video playing must start, in seconds
duration: i32Duration of the video, in seconds
supports_streaming: boolTrue, if the video is expected to be streamed
Trait Implementations§
Source§impl Clone for InputPaidMediaTypeVideo
impl Clone for InputPaidMediaTypeVideo
Source§fn clone(&self) -> InputPaidMediaTypeVideo
fn clone(&self) -> InputPaidMediaTypeVideo
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 InputPaidMediaTypeVideo
impl Debug for InputPaidMediaTypeVideo
Source§impl Default for InputPaidMediaTypeVideo
impl Default for InputPaidMediaTypeVideo
Source§fn default() -> InputPaidMediaTypeVideo
fn default() -> InputPaidMediaTypeVideo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputPaidMediaTypeVideo
impl<'de> Deserialize<'de> for InputPaidMediaTypeVideo
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 PartialEq for InputPaidMediaTypeVideo
impl PartialEq for InputPaidMediaTypeVideo
Source§impl Serialize for InputPaidMediaTypeVideo
impl Serialize for InputPaidMediaTypeVideo
impl StructuralPartialEq for InputPaidMediaTypeVideo
Auto Trait Implementations§
impl Freeze for InputPaidMediaTypeVideo
impl RefUnwindSafe for InputPaidMediaTypeVideo
impl Send for InputPaidMediaTypeVideo
impl Sync for InputPaidMediaTypeVideo
impl Unpin for InputPaidMediaTypeVideo
impl UnsafeUnpin for InputPaidMediaTypeVideo
impl UnwindSafe for InputPaidMediaTypeVideo
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