Enum carapax::types::InputMediaType
source · pub enum InputMediaType {
Animation(InputMediaAnimation),
Audio(InputMediaAudio),
Document(InputMediaDocument),
Photo(InputMediaPhoto),
Video(InputMediaVideo),
}
Expand description
Represents a metadata of the input media.
Variants§
Animation(InputMediaAnimation)
An animation file.
Audio(InputMediaAudio)
An audio file.
Document(InputMediaDocument)
A general file.
Photo(InputMediaPhoto)
A photo.
Video(InputMediaVideo)
A video file.
Trait Implementations§
source§impl Debug for InputMediaType
impl Debug for InputMediaType
source§impl From<InputMediaAnimation> for InputMediaType
impl From<InputMediaAnimation> for InputMediaType
source§fn from(original: InputMediaAnimation) -> InputMediaType
fn from(original: InputMediaAnimation) -> InputMediaType
Converts to this type from the input type.
source§impl From<InputMediaAudio> for InputMediaType
impl From<InputMediaAudio> for InputMediaType
source§fn from(original: InputMediaAudio) -> InputMediaType
fn from(original: InputMediaAudio) -> InputMediaType
Converts to this type from the input type.
source§impl From<InputMediaDocument> for InputMediaType
impl From<InputMediaDocument> for InputMediaType
source§fn from(original: InputMediaDocument) -> InputMediaType
fn from(original: InputMediaDocument) -> InputMediaType
Converts to this type from the input type.
source§impl From<InputMediaPhoto> for InputMediaType
impl From<InputMediaPhoto> for InputMediaType
source§fn from(original: InputMediaPhoto) -> InputMediaType
fn from(original: InputMediaPhoto) -> InputMediaType
Converts to this type from the input type.
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.
Auto Trait Implementations§
impl Freeze for InputMediaType
impl RefUnwindSafe for InputMediaType
impl Send for InputMediaType
impl Sync for InputMediaType
impl Unpin for InputMediaType
impl UnwindSafe for InputMediaType
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