// WARNING: THIS CODE IS AUTOGENERATED.
// DO NOT EDIT!!!
#![allow(clippy::too_many_arguments, clippy::new_without_default)]
use crate::types::WebhookInfo;
impl WebhookInfo {
/// This function creates an empty struct for the object WebhookInfo.
pub fn new(url: String, has_custom_certificate: bool, pending_update_count: i64) -> Self {
Self {
url,
has_custom_certificate,
pending_update_count,
ip_address: None,
last_error_date: None,
last_error_message: None,
last_synchronization_error_date: None,
max_connections: None,
allowed_updates: None,
}
}
}