Struct botapi::gen_types::NoSkipInputMediaVideo
source · pub struct NoSkipInputMediaVideo {
pub tg_type: String,
pub media: Option<InputFile>,
pub thumbnail: Option<InputFile>,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub show_caption_above_media: Option<bool>,
pub width: Option<i64>,
pub height: Option<i64>,
pub duration: Option<i64>,
pub supports_streaming: Option<bool>,
pub has_spoiler: Option<bool>,
}
Expand description
Companion type to InputMediaVideo that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§tg_type: String
Type of the result, must be video
media: Option<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, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files: https://core.telegram.org/bots/api#sending-files
thumbnail: Option<InputFile>
§caption: Option<String>
§parse_mode: Option<String>
§caption_entities: Option<Vec<MessageEntity>>
§show_caption_above_media: Option<bool>
§width: Option<i64>
§height: Option<i64>
§duration: Option<i64>
§supports_streaming: Option<bool>
§has_spoiler: Option<bool>
Implementations§
source§impl NoSkipInputMediaVideo
impl NoSkipInputMediaVideo
pub fn skip(self) -> InputMediaVideo
Trait Implementations§
source§impl Clone for NoSkipInputMediaVideo
impl Clone for NoSkipInputMediaVideo
source§fn clone(&self) -> NoSkipInputMediaVideo
fn clone(&self) -> NoSkipInputMediaVideo
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 NoSkipInputMediaVideo
impl Debug for NoSkipInputMediaVideo
source§impl Default for NoSkipInputMediaVideo
impl Default for NoSkipInputMediaVideo
source§fn default() -> NoSkipInputMediaVideo
fn default() -> NoSkipInputMediaVideo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NoSkipInputMediaVideo
impl<'de> Deserialize<'de> for NoSkipInputMediaVideo
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<NoSkipInputMediaVideo> for InputMediaVideo
impl From<NoSkipInputMediaVideo> for InputMediaVideo
source§fn from(t: NoSkipInputMediaVideo) -> Self
fn from(t: NoSkipInputMediaVideo) -> Self
Converts to this type from the input type.
source§impl Hash for NoSkipInputMediaVideo
impl Hash for NoSkipInputMediaVideo
source§impl Into<NoSkipInputMediaVideo> for InputMediaVideo
impl Into<NoSkipInputMediaVideo> for InputMediaVideo
source§fn into(self) -> NoSkipInputMediaVideo
fn into(self) -> NoSkipInputMediaVideo
Converts this type into the (usually inferred) input type.
source§impl Ord for NoSkipInputMediaVideo
impl Ord for NoSkipInputMediaVideo
source§fn cmp(&self, other: &NoSkipInputMediaVideo) -> Ordering
fn cmp(&self, other: &NoSkipInputMediaVideo) -> 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 NoSkipInputMediaVideo
impl PartialEq for NoSkipInputMediaVideo
source§fn eq(&self, other: &NoSkipInputMediaVideo) -> bool
fn eq(&self, other: &NoSkipInputMediaVideo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoSkipInputMediaVideo
impl PartialOrd for NoSkipInputMediaVideo
source§fn partial_cmp(&self, other: &NoSkipInputMediaVideo) -> Option<Ordering>
fn partial_cmp(&self, other: &NoSkipInputMediaVideo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for NoSkipInputMediaVideo
impl Serialize for NoSkipInputMediaVideo
impl Eq for NoSkipInputMediaVideo
impl StructuralPartialEq for NoSkipInputMediaVideo
Auto Trait Implementations§
impl Freeze for NoSkipInputMediaVideo
impl RefUnwindSafe for NoSkipInputMediaVideo
impl Send for NoSkipInputMediaVideo
impl Sync for NoSkipInputMediaVideo
impl Unpin for NoSkipInputMediaVideo
impl UnwindSafe for NoSkipInputMediaVideo
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.