Struct telexide::api::types::SetWebhook [−][src]
pub struct SetWebhook { pub url: String, pub certificate: Option<InputFile>, pub max_connections: Option<i64>, pub allowed_updates: Option<Vec<UpdateType>>, pub ip_address: Option<String>, pub drop_pending_updates: Option<bool>, }
struct for holding data needed to call set_webhook
note: having an webhook url set prevents you from using get_updates
Fields
url: String
HTTPS url to send updates to. Use an empty string to remove webhook integration
certificate: Option<InputFile>
Upload your public key certificate so that the root certificate in use can be checked. See our self-signed guide for details.
max_connections: Option<i64>
Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot‘s server, and higher values to increase your bot’s throughput.
allowed_updates: Option<Vec<UpdateType>>
List of the update types you want your bot to receive.
Please note that this parameter doesn’t affect updates created before the call to the set_webhook, so unwanted updates may be received for a short period of time.
ip_address: Option<String>
The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS
drop_pending_updates: Option<bool>
Pass True to drop all pending updates
Trait Implementations
impl Clone for SetWebhook
[src]
impl Clone for SetWebhook
[src]fn clone(&self) -> SetWebhook
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for SetWebhook
[src]
impl<'de> Deserialize<'de> for SetWebhook
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<SetWebhook> for SetWebhook
[src]
impl PartialEq<SetWebhook> for SetWebhook
[src]fn eq(&self, other: &SetWebhook) -> bool
[src]
fn ne(&self, other: &SetWebhook) -> bool
[src]
impl Serialize for SetWebhook
[src]
impl Serialize for SetWebhook
[src]impl StructuralPartialEq for SetWebhook
[src]
impl StructuralPartialEq for SetWebhook
[src]Auto Trait Implementations
impl RefUnwindSafe for SetWebhook
impl RefUnwindSafe for SetWebhook
impl Send for SetWebhook
impl Send for SetWebhook
impl Sync for SetWebhook
impl Sync for SetWebhook
impl Unpin for SetWebhook
impl Unpin for SetWebhook
impl UnwindSafe for SetWebhook
impl UnwindSafe for SetWebhook
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 + Sync + Send, Global> where
T: Send + Sync,
[src]
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, 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,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,