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
sourceimpl GetWebhookInfo
impl GetWebhookInfo
Trait Implementations
sourceimpl Clone for GetWebhookInfo
impl Clone for GetWebhookInfo
sourcefn clone(&self) -> GetWebhookInfoⓘNotable traits for GetWebhookInfoimpl Payload for GetWebhookInfo type Output = WebhookInfo;
fn clone(&self) -> GetWebhookInfoⓘNotable traits for GetWebhookInfoimpl Payload for GetWebhookInfo type Output = WebhookInfo;
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for GetWebhookInfo
impl Debug for GetWebhookInfo
sourceimpl Default for GetWebhookInfo
impl Default for GetWebhookInfo
sourcefn default() -> GetWebhookInfoⓘNotable traits for GetWebhookInfoimpl Payload for GetWebhookInfo type Output = WebhookInfo;
fn default() -> GetWebhookInfoⓘNotable traits for GetWebhookInfoimpl Payload for GetWebhookInfo type Output = WebhookInfo;
Returns the “default value” for a type. Read more
sourceimpl Hash for GetWebhookInfo
impl Hash for GetWebhookInfo
sourceimpl PartialEq<GetWebhookInfo> for GetWebhookInfo
impl PartialEq<GetWebhookInfo> for GetWebhookInfo
sourcefn eq(&self, other: &GetWebhookInfo) -> bool
fn eq(&self, other: &GetWebhookInfo) -> bool
sourceimpl Payload for GetWebhookInfo
impl Payload for GetWebhookInfo
type Output = WebhookInfo
type Output = WebhookInfo
The return type of a Telegram method. Read more
sourcefn 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. Read moresourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.