Struct telexide::model::WebhookInfo [−][src]
pub struct WebhookInfo { pub url: String, pub has_custom_certificate: bool, pub pending_update_count: i64, pub last_error_date: Option<DateTime<Utc>>, pub last_error_message: Option<String>, pub max_connections: Option<i64>, pub allowed_updates: Option<Vec<UpdateType>>, pub ip_address: Option<String>, }
Contains information about the current status of a webhook.
Fields
url: String
Webhook URL, may be empty if webhook is not set up
has_custom_certificate: bool
True, if a custom certificate was provided for webhook certificate checks
pending_update_count: i64
Number of updates awaiting delivery
last_error_date: Option<DateTime<Utc>>
Unix time for the most recent error that happened when trying to deliver an update via webhook
last_error_message: Option<String>
Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
max_connections: Option<i64>
Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
allowed_updates: Option<Vec<UpdateType>>
A list of update types the bot is subscribed to. Defaults to all update types
ip_address: Option<String>
Currently used webhook IP address
Trait Implementations
impl Clone for WebhookInfo
[src]
impl Clone for WebhookInfo
[src]fn clone(&self) -> WebhookInfo
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for WebhookInfo
[src]
impl<'de> Deserialize<'de> for WebhookInfo
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<WebhookInfo> for WebhookInfo
[src]
impl PartialEq<WebhookInfo> for WebhookInfo
[src]fn eq(&self, other: &WebhookInfo) -> bool
[src]
fn ne(&self, other: &WebhookInfo) -> bool
[src]
impl Serialize for WebhookInfo
[src]
impl Serialize for WebhookInfo
[src]impl StructuralPartialEq for WebhookInfo
[src]
impl StructuralPartialEq for WebhookInfo
[src]Auto Trait Implementations
impl RefUnwindSafe for WebhookInfo
impl RefUnwindSafe for WebhookInfo
impl Send for WebhookInfo
impl Send for WebhookInfo
impl Sync for WebhookInfo
impl Sync for WebhookInfo
impl Unpin for WebhookInfo
impl Unpin for WebhookInfo
impl UnwindSafe for WebhookInfo
impl UnwindSafe for WebhookInfo
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
[src]
impl<T> CloneAny for T where
T: Any + Clone,
[src]pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
[src]
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
[src]
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
[src]
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
[src]
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,