Struct carapax::types::InlineQueryResultCachedGif
source · pub struct InlineQueryResultCachedGif { /* private fields */ }
Expand description
Link to an animated GIF file stored on the Telegram servers.
By default, this animated GIF file will be sent by the user with an optional caption.
Alternatively, you can use Self::with_input_message_content
to send
a message with specified content instead of the animation.
Implementations§
source§impl InlineQueryResultCachedGif
impl InlineQueryResultCachedGif
sourcepub fn new<A, B>(gif_file_id: A, id: B) -> InlineQueryResultCachedGif
pub fn new<A, B>(gif_file_id: A, id: B) -> InlineQueryResultCachedGif
Creates a new InlineQueryResultCachedGif
.
§Arguments
gif_file_id
- A valid file identifier for the GIF file.id
- Unique identifier for this result; 1-64 bytes.
sourcepub fn with_input_message_content<T>(
self,
value: T
) -> InlineQueryResultCachedGifwhere
T: Into<InputMessageContent>,
pub fn with_input_message_content<T>(
self,
value: T
) -> InlineQueryResultCachedGifwhere
T: Into<InputMessageContent>,
Sets a new input message content.
§Arguments
value
- Content of the message to be sent instead of the GIF animation.
sourcepub fn with_reply_markup<T>(self, value: T) -> InlineQueryResultCachedGifwhere
T: Into<InlineKeyboardMarkup>,
pub fn with_reply_markup<T>(self, value: T) -> InlineQueryResultCachedGifwhere
T: Into<InlineKeyboardMarkup>,
sourcepub fn with_title<T>(self, value: T) -> InlineQueryResultCachedGif
pub fn with_title<T>(self, value: T) -> InlineQueryResultCachedGif
Trait Implementations§
source§impl Clone for InlineQueryResultCachedGif
impl Clone for InlineQueryResultCachedGif
source§fn clone(&self) -> InlineQueryResultCachedGif
fn clone(&self) -> InlineQueryResultCachedGif
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 InlineQueryResultCachedGif
impl Debug for InlineQueryResultCachedGif
source§impl<'de> Deserialize<'de> for InlineQueryResultCachedGif
impl<'de> Deserialize<'de> for InlineQueryResultCachedGif
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<InlineQueryResultCachedGif, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<InlineQueryResultCachedGif, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<InlineQueryResultCachedGif> for InlineQueryResult
impl From<InlineQueryResultCachedGif> for InlineQueryResult
source§fn from(original: InlineQueryResultCachedGif) -> InlineQueryResult
fn from(original: InlineQueryResultCachedGif) -> InlineQueryResult
Converts to this type from the input type.
source§impl PartialEq for InlineQueryResultCachedGif
impl PartialEq for InlineQueryResultCachedGif
source§fn eq(&self, other: &InlineQueryResultCachedGif) -> bool
fn eq(&self, other: &InlineQueryResultCachedGif) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InlineQueryResultCachedGif
impl Serialize for InlineQueryResultCachedGif
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
source§impl TryFrom<RawInlineQueryResult> for InlineQueryResultCachedGif
impl TryFrom<RawInlineQueryResult> for InlineQueryResultCachedGif
source§fn try_from(
value: RawInlineQueryResult
) -> Result<InlineQueryResultCachedGif, <InlineQueryResultCachedGif as TryFrom<RawInlineQueryResult>>::Error>
fn try_from( value: RawInlineQueryResult ) -> Result<InlineQueryResultCachedGif, <InlineQueryResultCachedGif as TryFrom<RawInlineQueryResult>>::Error>
Performs the conversion.
impl StructuralPartialEq for InlineQueryResultCachedGif
Auto Trait Implementations§
impl Freeze for InlineQueryResultCachedGif
impl RefUnwindSafe for InlineQueryResultCachedGif
impl Send for InlineQueryResultCachedGif
impl Sync for InlineQueryResultCachedGif
impl Unpin for InlineQueryResultCachedGif
impl UnwindSafe for InlineQueryResultCachedGif
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