Enum tgbot::types::ExternalReplyData

source ·
pub enum ExternalReplyData {
Show 19 variants Animation(Animation), Audio(Audio), Contact(Contact), Dice(Dice), Document(Document), Game(Game), Giveaway(Giveaway), GiveawayWinners(GiveawayWinners), Invoice(Invoice), Location(Location), Photo(Vec<PhotoSize>), Poll(Poll), Sticker(Sticker), Story(Story), Venue(Venue), Video(Video), VideoNote(VideoNote), Voice(Voice), Unknown(Value),
}
Expand description

Contains data of an external reply info.

Variants§

§

Animation(Animation)

Message is an animation, information about the animation.

§

Audio(Audio)

Message is an audio file, information about the file.

§

Contact(Contact)

Message is a shared contact, information about the contact.

§

Dice(Dice)

Message is a dice with random value.

§

Document(Document)

Message is a general file, information about the file.

§

Game(Game)

Message is a game, information about the game.

§

Giveaway(Giveaway)

Message is a scheduled giveaway, information about the giveaway.

§

GiveawayWinners(GiveawayWinners)

A giveaway with public winners was completed.

§

Invoice(Invoice)

Message is an invoice for a payment, information about the invoice.

§

Location(Location)

Message is a shared location, information about the location.

§

Photo(Vec<PhotoSize>)

Message is a photo, available sizes of the photo.

§

Poll(Poll)

Message is a native poll, information about the poll.

§

Sticker(Sticker)

Message is a sticker, information about the sticker.

§

Story(Story)

Message is a forwarded story.

§

Venue(Venue)

Message is a venue, information about the venue.

§

Video(Video)

Message is a video, information about the video.

§

VideoNote(VideoNote)

Message is a video note, information about the video message.

§

Voice(Voice)

Message is a voice message, information about the file.

§

Unknown(Value)

Contains arbitrary data for future variants.

Trait Implementations§

source§

impl Clone for ExternalReplyData

source§

fn clone(&self) -> ExternalReplyData

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExternalReplyData

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ExternalReplyData

source§

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 From<Animation> for ExternalReplyData

source§

fn from(original: Animation) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Audio> for ExternalReplyData

source§

fn from(original: Audio) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Contact> for ExternalReplyData

source§

fn from(original: Contact) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Dice> for ExternalReplyData

source§

fn from(original: Dice) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Document> for ExternalReplyData

source§

fn from(original: Document) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Game> for ExternalReplyData

source§

fn from(original: Game) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Giveaway> for ExternalReplyData

source§

fn from(original: Giveaway) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<GiveawayWinners> for ExternalReplyData

source§

fn from(original: GiveawayWinners) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Invoice> for ExternalReplyData

source§

fn from(original: Invoice) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Location> for ExternalReplyData

source§

fn from(original: Location) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Poll> for ExternalReplyData

source§

fn from(original: Poll) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Sticker> for ExternalReplyData

source§

fn from(original: Sticker) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Story> for ExternalReplyData

source§

fn from(original: Story) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Value> for ExternalReplyData

source§

fn from(original: Value) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Vec<PhotoSize>> for ExternalReplyData

source§

fn from(original: Vec<PhotoSize>) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Venue> for ExternalReplyData

source§

fn from(original: Venue) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Video> for ExternalReplyData

source§

fn from(original: Video) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<VideoNote> for ExternalReplyData

source§

fn from(original: VideoNote) -> ExternalReplyData

Converts to this type from the input type.
source§

impl From<Voice> for ExternalReplyData

source§

fn from(original: Voice) -> ExternalReplyData

Converts to this type from the input type.
source§

impl PartialEq for ExternalReplyData

source§

fn eq(&self, other: &ExternalReplyData) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ExternalReplyData

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for ExternalReplyData

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromRef<T> for T
where T: Clone,

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,