Struct carapax::types::InputMediaVideo
source · pub struct InputMediaVideo { /* private fields */ }
Expand description
Represents a video to be sent.
Implementations§
source§impl InputMediaVideo
impl InputMediaVideo
sourcepub fn with_duration(self, value: i64) -> InputMediaVideo
pub fn with_duration(self, value: i64) -> InputMediaVideo
sourcepub fn with_has_spoiler(self, value: bool) -> InputMediaVideo
pub fn with_has_spoiler(self, value: bool) -> InputMediaVideo
Sets a new value for a has_spoiler
flag.
§Arguments
value
- Indicates whether to cover with a spoiler animation.
sourcepub fn with_height(self, value: i64) -> InputMediaVideo
pub fn with_height(self, value: i64) -> InputMediaVideo
sourcepub fn with_supports_streaming(self, value: bool) -> InputMediaVideo
pub fn with_supports_streaming(self, value: bool) -> InputMediaVideo
Sets a new value for a supports_streaming
flag.
§Arguments
value
- Indicates whether the uploaded video is suitable for streaming.
sourcepub fn with_width(self, value: i64) -> InputMediaVideo
pub fn with_width(self, value: i64) -> 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 Default for InputMediaVideo
impl Default for InputMediaVideo
source§fn default() -> InputMediaVideo
fn default() -> InputMediaVideo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InputMediaVideo
impl<'de> Deserialize<'de> for InputMediaVideo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<InputMediaVideo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<InputMediaVideo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<InputMediaVideo> for InputMediaType
impl From<InputMediaVideo> for InputMediaType
source§fn from(original: InputMediaVideo) -> InputMediaType
fn from(original: InputMediaVideo) -> InputMediaType
Converts to this type from the input type.
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 PartialOrd for InputMediaVideo
impl PartialOrd for InputMediaVideo
source§fn partial_cmp(&self, other: &InputMediaVideo) -> Option<Ordering>
fn partial_cmp(&self, other: &InputMediaVideo) -> 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 InputMediaVideo
impl Serialize for InputMediaVideo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more