Struct frankenstein::api_params::InputMediaVideo
source · pub struct InputMediaVideo {
pub media: FileUpload,
pub thumbnail: Option<FileUpload>,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub width: Option<u32>,
pub height: Option<u32>,
pub duration: Option<u32>,
pub supports_streaming: Option<bool>,
pub has_spoiler: Option<bool>,
}
Fields§
§media: FileUpload
§thumbnail: Option<FileUpload>
§parse_mode: Option<ParseMode>
§width: Option<u32>
§height: Option<u32>
§duration: Option<u32>
§supports_streaming: Option<bool>
§has_spoiler: Option<bool>
Implementations§
source§impl InputMediaVideo
impl InputMediaVideo
sourcepub fn builder(
) -> InputMediaVideoBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> InputMediaVideoBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building InputMediaVideo
.
On the builder, call .media(...)
, .thumbnail(...)
(optional), .caption(...)
(optional), .parse_mode(...)
(optional), .caption_entities(...)
(optional), .width(...)
(optional), .height(...)
(optional), .duration(...)
(optional), .supports_streaming(...)
(optional), .has_spoiler(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InputMediaVideo
.
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 StructuralPartialEq for InputMediaVideo
Auto Trait Implementations§
impl Freeze for InputMediaVideo
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