Struct telexide::api::types::InputMediaVideo
source · pub struct InputMediaVideo {
pub media: InputFile,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub duration: Option<i64>,
pub width: Option<i64>,
pub height: Option<i64>,
pub supports_streaming: Option<bool>,
pub has_spoiler: Option<bool>,
}
Fields§
§media: InputFile
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet
Caption of the video to be sent, 0-1024 characters after entities parsing
parse_mode: Option<ParseMode>
Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption
List of special entities that appear in the caption, which can be specified instead of parse_mode
duration: Option<i64>
Duration of the video in seconds
width: Option<i64>
Video width
height: Option<i64>
Video height
supports_streaming: Option<bool>
If the uploaded video is suitable for streaming
has_spoiler: Option<bool>
Pass True if the video needs to be covered with a spoiler animation.
Implementations§
source§impl InputMediaVideo
impl InputMediaVideo
pub fn new(media: InputFile) -> Self
pub fn set_parse_mode(&mut self, parse_mode: ParseMode) -> &mut Self
pub fn set_duration(&mut self, duration: i64) -> &mut Self
pub fn set_width(&mut self, width: i64) -> &mut Self
pub fn set_height(&mut self, height: i64) -> &mut Self
pub fn set_supports_streaming(&mut self, supports_streaming: bool) -> &mut Self
pub fn set_has_spoiler(&mut self, has_spoiler: bool) -> &mut Self
Trait Implementations§
source§impl Clone for InputMediaVideo
impl Clone for InputMediaVideo
source§fn clone(&self) -> InputMediaVideo
fn clone(&self) -> InputMediaVideo
Returns a copy 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 InputMediaVideo
impl Debug for InputMediaVideo
source§impl<'de> Deserialize<'de> for InputMediaVideo
impl<'de> Deserialize<'de> for InputMediaVideo
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 InputMediaVideo
impl PartialEq for InputMediaVideo
source§fn eq(&self, other: &InputMediaVideo) -> bool
fn eq(&self, other: &InputMediaVideo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InputMediaVideo
impl Serialize for InputMediaVideo
impl Eq for InputMediaVideo
impl StructuralEq for InputMediaVideo
impl StructuralPartialEq for InputMediaVideo
Auto Trait Implementations§
impl RefUnwindSafe for InputMediaVideo
impl Send for InputMediaVideo
impl Sync for InputMediaVideo
impl Unpin for InputMediaVideo
impl UnwindSafe for InputMediaVideo
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> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
source§impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
impl<T> CloneableStorage for Twhere T: Any + Send + Sync + Clone,
fn clone_storage(&self) -> Box<dyn CloneableStorage>
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.