Struct frankenstein::objects::WebhookInfo
source · pub struct WebhookInfo {
pub url: String,
pub has_custom_certificate: bool,
pub pending_update_count: u32,
pub ip_address: Option<String>,
pub last_error_date: Option<u64>,
pub last_error_message: Option<String>,
pub last_synchronization_error_date: Option<u64>,
pub max_connections: Option<u16>,
pub allowed_updates: Option<Vec<AllowedUpdate>>,
}
Fields§
§url: String
§has_custom_certificate: bool
§pending_update_count: u32
§ip_address: Option<String>
§last_error_date: Option<u64>
§last_error_message: Option<String>
§last_synchronization_error_date: Option<u64>
§max_connections: Option<u16>
§allowed_updates: Option<Vec<AllowedUpdate>>
Implementations§
source§impl WebhookInfo
impl WebhookInfo
sourcepub fn builder() -> WebhookInfoBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder() -> WebhookInfoBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building WebhookInfo
.
On the builder, call .url(...)
, .has_custom_certificate(...)
, .pending_update_count(...)
, .ip_address(...)
(optional), .last_error_date(...)
(optional), .last_error_message(...)
(optional), .last_synchronization_error_date(...)
(optional), .max_connections(...)
(optional), .allowed_updates(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of WebhookInfo
.
Trait Implementations§
source§impl Clone for WebhookInfo
impl Clone for WebhookInfo
source§fn clone(&self) -> WebhookInfo
fn clone(&self) -> WebhookInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WebhookInfo
impl Debug for WebhookInfo
source§impl<'de> Deserialize<'de> for WebhookInfo
impl<'de> Deserialize<'de> for WebhookInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for WebhookInfo
impl PartialEq for WebhookInfo
source§fn eq(&self, other: &WebhookInfo) -> bool
fn eq(&self, other: &WebhookInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WebhookInfo
impl Serialize for WebhookInfo
impl Eq for WebhookInfo
impl StructuralPartialEq for WebhookInfo
Auto Trait Implementations§
impl Freeze for WebhookInfo
impl RefUnwindSafe for WebhookInfo
impl Send for WebhookInfo
impl Sync for WebhookInfo
impl Unpin for WebhookInfo
impl UnwindSafe for WebhookInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more