Struct frankenstein::api_params::SendVideoParams
source · [−]pub struct SendVideoParams {Show 15 fields
pub chat_id: ChatId,
pub video: File,
pub duration: Option<u32>,
pub width: Option<u32>,
pub height: Option<u32>,
pub thumb: Option<File>,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub supports_streaming: Option<bool>,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
pub reply_to_message_id: Option<i32>,
pub allow_sending_without_reply: Option<bool>,
pub reply_markup: Option<ReplyMarkup>,
}
Fields
chat_id: ChatId
video: File
duration: Option<u32>
width: Option<u32>
height: Option<u32>
thumb: Option<File>
parse_mode: Option<ParseMode>
supports_streaming: Option<bool>
disable_notification: Option<bool>
protect_content: Option<bool>
reply_to_message_id: Option<i32>
allow_sending_without_reply: Option<bool>
reply_markup: Option<ReplyMarkup>
Implementations
sourceimpl SendVideoParams
impl SendVideoParams
sourcepub fn builder(
) -> SendVideoParamsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> SendVideoParamsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building SendVideoParams
.
On the builder, call .chat_id(...)
, .video(...)
, .duration(...)
(optional), .width(...)
(optional), .height(...)
(optional), .thumb(...)
(optional), .caption(...)
(optional), .parse_mode(...)
(optional), .caption_entities(...)
(optional), .supports_streaming(...)
(optional), .disable_notification(...)
(optional), .protect_content(...)
(optional), .reply_to_message_id(...)
(optional), .allow_sending_without_reply(...)
(optional), .reply_markup(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SendVideoParams
.
Trait Implementations
sourceimpl Clone for SendVideoParams
impl Clone for SendVideoParams
sourcefn clone(&self) -> SendVideoParams
fn clone(&self) -> SendVideoParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SendVideoParams
impl Debug for SendVideoParams
sourceimpl<'de> Deserialize<'de> for SendVideoParams
impl<'de> Deserialize<'de> for SendVideoParams
sourcefn 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
sourceimpl PartialEq<SendVideoParams> for SendVideoParams
impl PartialEq<SendVideoParams> for SendVideoParams
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SendVideoParams) -> bool
fn ne(&self, other: &SendVideoParams) -> bool
This method tests for !=
.
sourceimpl Serialize for SendVideoParams
impl Serialize for SendVideoParams
impl StructuralPartialEq for SendVideoParams
Auto Trait Implementations
impl RefUnwindSafe for SendVideoParams
impl Send for SendVideoParams
impl Sync for SendVideoParams
impl Unpin for SendVideoParams
impl UnwindSafe for SendVideoParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more