Struct frankenstein::objects::ExternalReplyInfo
source · pub struct ExternalReplyInfo {Show 23 fields
pub origin: Option<MessageOrigin>,
pub chat: Option<Chat>,
pub message_id: Option<i32>,
pub link_preview_options: Option<LinkPreviewOptions>,
pub animation: Option<Animation>,
pub audio: Option<Audio>,
pub document: Option<Document>,
pub photo: Option<Vec<PhotoSize>>,
pub sticker: Option<Sticker>,
pub story: Option<Story>,
pub video: Option<Video>,
pub video_note: Option<VideoNote>,
pub voice: Option<Voice>,
pub has_media_spoiler: Option<bool>,
pub contact: Option<Contact>,
pub dice: Option<Dice>,
pub game: Option<Game>,
pub giveaway: Option<Giveaway>,
pub giveaway_winners: Option<GiveawayWinners>,
pub invoice: Option<Invoice>,
pub location: Option<Location>,
pub poll: Option<Poll>,
pub venue: Option<Venue>,
}
Fields§
§origin: Option<MessageOrigin>
§chat: Option<Chat>
§message_id: Option<i32>
§link_preview_options: Option<LinkPreviewOptions>
§animation: Option<Animation>
§audio: Option<Audio>
§document: Option<Document>
§photo: Option<Vec<PhotoSize>>
§sticker: Option<Sticker>
§story: Option<Story>
§video: Option<Video>
§video_note: Option<VideoNote>
§voice: Option<Voice>
§has_media_spoiler: Option<bool>
§contact: Option<Contact>
§dice: Option<Dice>
§game: Option<Game>
§giveaway: Option<Giveaway>
§giveaway_winners: Option<GiveawayWinners>
§invoice: Option<Invoice>
§location: Option<Location>
§poll: Option<Poll>
§venue: Option<Venue>
Implementations§
source§impl ExternalReplyInfo
impl ExternalReplyInfo
sourcepub fn builder(
) -> ExternalReplyInfoBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> ExternalReplyInfoBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building ExternalReplyInfo
.
On the builder, call .origin(...)
(optional), .chat(...)
(optional), .message_id(...)
(optional), .link_preview_options(...)
(optional), .animation(...)
(optional), .audio(...)
(optional), .document(...)
(optional), .photo(...)
(optional), .sticker(...)
(optional), .story(...)
(optional), .video(...)
(optional), .video_note(...)
(optional), .voice(...)
(optional), .has_media_spoiler(...)
(optional), .contact(...)
(optional), .dice(...)
(optional), .game(...)
(optional), .giveaway(...)
(optional), .giveaway_winners(...)
(optional), .invoice(...)
(optional), .location(...)
(optional), .poll(...)
(optional), .venue(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ExternalReplyInfo
.
Trait Implementations§
source§impl Clone for ExternalReplyInfo
impl Clone for ExternalReplyInfo
source§fn clone(&self) -> ExternalReplyInfo
fn clone(&self) -> ExternalReplyInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExternalReplyInfo
impl Debug for ExternalReplyInfo
source§impl<'de> Deserialize<'de> for ExternalReplyInfo
impl<'de> Deserialize<'de> for ExternalReplyInfo
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>,
source§impl PartialEq for ExternalReplyInfo
impl PartialEq for ExternalReplyInfo
source§fn eq(&self, other: &ExternalReplyInfo) -> bool
fn eq(&self, other: &ExternalReplyInfo) -> bool
self
and other
values to be equal, and is used
by ==
.