pub struct AnswerWebAppQuery {
pub web_app_query_id: String,
pub result: InlineQueryResult,
}Expand description
Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated.
Fields§
§web_app_query_id: StringUnique identifier for the query to be answered
result: InlineQueryResultA JSON-serialized object describing the message to be sent
Implementations§
Source§impl AnswerWebAppQuery
impl AnswerWebAppQuery
pub fn new( web_app_query_id: impl Into<String>, result: InlineQueryResult, ) -> AnswerWebAppQuery ⓘ
Trait Implementations§
Source§impl Clone for AnswerWebAppQuery
impl Clone for AnswerWebAppQuery
Source§fn clone(&self) -> AnswerWebAppQuery ⓘ
fn clone(&self) -> AnswerWebAppQuery ⓘ
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AnswerWebAppQuery
impl Debug for AnswerWebAppQuery
Source§impl PartialEq for AnswerWebAppQuery
impl PartialEq for AnswerWebAppQuery
Source§impl Payload for AnswerWebAppQuery
impl Payload for AnswerWebAppQuery
Source§const NAME: &'static str = "AnswerWebAppQuery"
const NAME: &'static str = "AnswerWebAppQuery"
Name of the Rust payload (for example,
EditMessageTextInline).Source§type Output = SentWebAppMessage
type Output = SentWebAppMessage
The return type of a Telegram method. Read more
Source§const TELEGRAM_METHOD: &'static str = Self::NAME
const TELEGRAM_METHOD: &'static str = Self::NAME
Case-insensitive Telegram method called on the wire (for example,
EditMessageText). Defaults to the payload name.Source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates with
big timeout), the minimum timeout that should be used.Source§impl Serialize for AnswerWebAppQuery
impl Serialize for AnswerWebAppQuery
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 AnswerWebAppQuery
Auto Trait Implementations§
impl !RefUnwindSafe for AnswerWebAppQuery
impl !UnwindSafe for AnswerWebAppQuery
impl Forget for AnswerWebAppQuery
impl Freeze for AnswerWebAppQuerywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<MessageEntity>: Freeze,
PhantomData<Vec<InlineKeyboardButton>>: Freeze,
PhantomData<LabeledPrice>: Freeze,
PhantomData<u64>: Freeze,
PhantomData<InputRichBlock>: Freeze,
PhantomData<InputRichMessageMedia>: Freeze,
&'static str: Freeze,
PhantomData<(Indexed, Indexed)>: Freeze,
impl Move for AnswerWebAppQuery
impl Send for AnswerWebAppQuerywhere
RawVecInner: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
BoxRaw<RichTextKind>: Send,
OnceCell<Arc<str>>: Send,
&'static str: Send,
String: Send,
Arc<TakeCell<dyn AsyncRead + Send + Unpin>>: Send,
Arc<OnceCell<Result<Vec<Bytes>, Arc<Error>>>>: Send,
Arc<Sender<()>>: Send,
Arc<Shared<()>>: Send,
Bytes: Send,
impl Sync for AnswerWebAppQuerywhere
RawVecInner: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
BoxRaw<RichTextKind>: Sync,
OnceCell<Arc<str>>: Sync,
String: Sync,
Arc<TakeCell<dyn AsyncRead + Send + Unpin>>: Sync,
Arc<OnceCell<Result<Vec<Bytes>, Arc<Error>>>>: Sync,
Arc<Sender<()>>: Sync,
Arc<Shared<()>>: Sync,
Bytes: Sync,
impl Unpin for AnswerWebAppQuerywhere
*const u8 is !null: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
Box<RichTextKind>: Unpin,
Align8<*mut Waiter>: Unpin,
Arc<str>: Unpin,
&'static str: Unpin,
String: Unpin,
Arc<TakeCell<dyn AsyncRead + Send + Unpin>>: Unpin,
Arc<OnceCell<Result<Vec<Bytes>, Arc<Error>>>>: Unpin,
Arc<Sender<()>>: Unpin,
Arc<Shared<()>>: Unpin,
*const u8: Unpin,
Align8<*mut ()>: Unpin,
&'static Vtable: Unpin,
impl UnsafeUnpin for AnswerWebAppQuerywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<MessageEntity>: UnsafeUnpin,
PhantomData<Vec<InlineKeyboardButton>>: UnsafeUnpin,
PhantomData<LabeledPrice>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
PhantomData<InputRichBlock>: UnsafeUnpin,
PhantomData<InputRichMessageMedia>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<(Indexed, Indexed)>: UnsafeUnpin,
Blanket Implementations§
Source§impl<P> AnswerWebAppQuerySetters for Pwhere
P: HasPayload<Payload = AnswerWebAppQuery>,
impl<P> AnswerWebAppQuerySetters for Pwhere
P: HasPayload<Payload = AnswerWebAppQuery>,
Source§fn web_app_query_id<T>(self, value: T) -> Self
fn web_app_query_id<T>(self, value: T) -> Self
Setter for
web_app_query_id field.Source§fn result(self, value: InlineQueryResult) -> Self
fn result(self, value: InlineQueryResult) -> Self
Setter for
result field.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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
Source§fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
Gain mutable access to the underlying payload.
Source§fn payload_ref(&self) -> &<P as HasPayload>::Payload
fn payload_ref(&self) -> &<P as HasPayload>::Payload
Gain immutable access to the underlying payload.
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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