Struct frankenstein::api_params::SendVideoParams
source · pub struct SendVideoParams {Show 17 fields
pub business_connection_id: Option<String>,
pub chat_id: ChatId,
pub message_thread_id: Option<i32>,
pub video: FileUpload,
pub duration: Option<u32>,
pub width: Option<u32>,
pub height: Option<u32>,
pub thumbnail: Option<FileUpload>,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub has_spoiler: Option<bool>,
pub supports_streaming: Option<bool>,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
pub reply_parameters: Option<ReplyParameters>,
pub reply_markup: Option<ReplyMarkup>,
}
Fields§
§business_connection_id: Option<String>
§chat_id: ChatId
§message_thread_id: Option<i32>
§video: FileUpload
§duration: Option<u32>
§width: Option<u32>
§height: Option<u32>
§thumbnail: Option<FileUpload>
§parse_mode: Option<ParseMode>
§has_spoiler: Option<bool>
§supports_streaming: Option<bool>
§disable_notification: Option<bool>
§protect_content: Option<bool>
§reply_parameters: Option<ReplyParameters>
§reply_markup: Option<ReplyMarkup>
Implementations§
source§impl SendVideoParams
impl SendVideoParams
sourcepub fn builder(
) -> SendVideoParamsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> SendVideoParamsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building SendVideoParams
.
On the builder, call .business_connection_id(...)
(optional), .chat_id(...)
, .message_thread_id(...)
(optional), .video(...)
, .duration(...)
(optional), .width(...)
(optional), .height(...)
(optional), .thumbnail(...)
(optional), .caption(...)
(optional), .parse_mode(...)
(optional), .caption_entities(...)
(optional), .has_spoiler(...)
(optional), .supports_streaming(...)
(optional), .disable_notification(...)
(optional), .protect_content(...)
(optional), .reply_parameters(...)
(optional), .reply_markup(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SendVideoParams
.
Trait Implementations§
source§impl Clone for SendVideoParams
impl Clone for SendVideoParams
source§fn clone(&self) -> SendVideoParams
fn clone(&self) -> SendVideoParams
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 SendVideoParams
impl Debug for SendVideoParams
source§impl<'de> Deserialize<'de> for SendVideoParams
impl<'de> Deserialize<'de> for SendVideoParams
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 SendVideoParams
impl PartialEq for SendVideoParams
source§fn eq(&self, other: &SendVideoParams) -> bool
fn eq(&self, other: &SendVideoParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SendVideoParams
impl Serialize for SendVideoParams
impl Eq for SendVideoParams
impl StructuralPartialEq for SendVideoParams
Auto Trait Implementations§
impl Freeze for SendVideoParams
impl RefUnwindSafe for SendVideoParams
impl Send for SendVideoParams
impl Sync for SendVideoParams
impl Unpin for SendVideoParams
impl UnwindSafe for SendVideoParams
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