Struct teloxide_core::payloads::GetWebhookInfo
source · pub struct GetWebhookInfo {}
Expand description
Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo
object. If the bot is using GetUpdates
, will return an object with the url field empty.
Implementations§
Trait Implementations§
source§impl Clone for GetWebhookInfo
impl Clone for GetWebhookInfo
source§impl Debug for GetWebhookInfo
impl Debug for GetWebhookInfo
source§impl Default for GetWebhookInfo
impl Default for GetWebhookInfo
source§impl Hash for GetWebhookInfo
impl Hash for GetWebhookInfo
source§impl PartialEq<GetWebhookInfo> for GetWebhookInfo
impl PartialEq<GetWebhookInfo> for GetWebhookInfo
source§fn eq(&self, other: &GetWebhookInfo) -> bool
fn eq(&self, other: &GetWebhookInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for GetWebhookInfo
impl Payload for GetWebhookInfo
§type Output = WebhookInfo
type Output = WebhookInfo
The return type of a Telegram method. Read more
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 GetWebhookInfo
impl Serialize for GetWebhookInfo
impl Eq for GetWebhookInfo
impl StructuralEq for GetWebhookInfo
impl StructuralPartialEq for GetWebhookInfo
Auto Trait Implementations§
impl RefUnwindSafe for GetWebhookInfo
impl Send for GetWebhookInfo
impl Sync for GetWebhookInfo
impl Unpin for GetWebhookInfo
impl UnwindSafe for GetWebhookInfo
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.