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
sourceimpl 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
sourceimpl Clone for WebhookInfo
impl Clone for WebhookInfo
sourcefn clone(&self) -> WebhookInfo
fn clone(&self) -> 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 more
sourceimpl Debug for WebhookInfo
impl Debug for WebhookInfo
sourceimpl<'de> Deserialize<'de> for WebhookInfo
impl<'de> Deserialize<'de> for WebhookInfo
sourcefn 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
sourceimpl PartialEq<WebhookInfo> for WebhookInfo
impl PartialEq<WebhookInfo> for WebhookInfo
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &WebhookInfo) -> bool
fn ne(&self, other: &WebhookInfo) -> bool
This method tests for !=
.
sourceimpl Serialize for WebhookInfo
impl Serialize for WebhookInfo
impl StructuralPartialEq for WebhookInfo
Auto Trait Implementations
impl RefUnwindSafe for WebhookInfo
impl Send for WebhookInfo
impl Sync for WebhookInfo
impl Unpin for WebhookInfo
impl UnwindSafe for WebhookInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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