Struct frankenstein::api_params::InputMediaAnimation
source · pub struct InputMediaAnimation {
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 has_spoiler: Option<bool>,
}
Fields§
§media: FileUpload
§thumbnail: Option<FileUpload>
§parse_mode: Option<ParseMode>
§width: Option<u32>
§height: Option<u32>
§duration: Option<u32>
§has_spoiler: Option<bool>
Implementations§
source§impl InputMediaAnimation
impl InputMediaAnimation
sourcepub fn builder(
) -> InputMediaAnimationBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> InputMediaAnimationBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building InputMediaAnimation
.
On the builder, call .media(...)
, .thumbnail(...)
(optional), .caption(...)
(optional), .parse_mode(...)
(optional), .caption_entities(...)
(optional), .width(...)
(optional), .height(...)
(optional), .duration(...)
(optional), .has_spoiler(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InputMediaAnimation
.
Trait Implementations§
source§impl Clone for InputMediaAnimation
impl Clone for InputMediaAnimation
source§fn clone(&self) -> InputMediaAnimation
fn clone(&self) -> InputMediaAnimation
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 InputMediaAnimation
impl Debug for InputMediaAnimation
source§impl<'de> Deserialize<'de> for InputMediaAnimation
impl<'de> Deserialize<'de> for InputMediaAnimation
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 InputMediaAnimation
impl PartialEq for InputMediaAnimation
source§fn eq(&self, other: &InputMediaAnimation) -> bool
fn eq(&self, other: &InputMediaAnimation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InputMediaAnimation
impl Serialize for InputMediaAnimation
impl Eq for InputMediaAnimation
impl StructuralPartialEq for InputMediaAnimation
Auto Trait Implementations§
impl Freeze for InputMediaAnimation
impl RefUnwindSafe for InputMediaAnimation
impl Send for InputMediaAnimation
impl Sync for InputMediaAnimation
impl Unpin for InputMediaAnimation
impl UnwindSafe for InputMediaAnimation
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