pub struct InputPaidMediaVideo {
pub media: String,
pub thumbnail: Option<String>,
pub cover: Option<String>,
pub start_timestamp: Option<i64>,
pub width: Option<u32>,
pub height: Option<u32>,
pub duration: Option<u32>,
pub supports_streaming: Option<bool>,
}Expand description
A video to send as paid media.
Fields§
§media: StringFile to send: file_id, HTTP URL, or "attach://<n>".
thumbnail: Option<String>Thumbnail: file_id or "attach://<n>".
cover: Option<String>Cover image: file_id, HTTP URL, or "attach://<n>".
start_timestamp: Option<i64>Start timestamp for the video in the message.
width: Option<u32>Video width in pixels.
height: Option<u32>Video height in pixels.
duration: Option<u32>Video duration in seconds.
supports_streaming: Option<bool>true if the uploaded video is suitable for streaming.
Trait Implementations§
Source§impl Clone for InputPaidMediaVideo
impl Clone for InputPaidMediaVideo
Source§fn clone(&self) -> InputPaidMediaVideo
fn clone(&self) -> InputPaidMediaVideo
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 InputPaidMediaVideo
impl Debug for InputPaidMediaVideo
Source§impl<'de> Deserialize<'de> for InputPaidMediaVideo
impl<'de> Deserialize<'de> for InputPaidMediaVideo
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 InputPaidMediaVideo
impl RefUnwindSafe for InputPaidMediaVideo
impl Send for InputPaidMediaVideo
impl Sync for InputPaidMediaVideo
impl Unpin for InputPaidMediaVideo
impl UnsafeUnpin for InputPaidMediaVideo
impl UnwindSafe for InputPaidMediaVideo
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