Struct frankenstein::api_params::SetWebhookParams
source · pub struct SetWebhookParams {
pub url: String,
pub certificate: Option<InputFile>,
pub ip_address: Option<String>,
pub max_connections: Option<u32>,
pub allowed_updates: Option<Vec<AllowedUpdate>>,
pub drop_pending_updates: Option<bool>,
pub secret_token: Option<String>,
}
Fields§
§url: String
§certificate: Option<InputFile>
§ip_address: Option<String>
§max_connections: Option<u32>
§allowed_updates: Option<Vec<AllowedUpdate>>
§drop_pending_updates: Option<bool>
§secret_token: Option<String>
Implementations§
source§impl SetWebhookParams
impl SetWebhookParams
sourcepub fn builder() -> SetWebhookParamsBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> SetWebhookParamsBuilder<((), (), (), (), (), (), ())>
Create a builder for building SetWebhookParams
.
On the builder, call .url(...)
, .certificate(...)
(optional), .ip_address(...)
(optional), .max_connections(...)
(optional), .allowed_updates(...)
(optional), .drop_pending_updates(...)
(optional), .secret_token(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SetWebhookParams
.
Trait Implementations§
source§impl Clone for SetWebhookParams
impl Clone for SetWebhookParams
source§fn clone(&self) -> SetWebhookParams
fn clone(&self) -> SetWebhookParams
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 SetWebhookParams
impl Debug for SetWebhookParams
source§impl<'de> Deserialize<'de> for SetWebhookParams
impl<'de> Deserialize<'de> for SetWebhookParams
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 SetWebhookParams
impl PartialEq for SetWebhookParams
source§fn eq(&self, other: &SetWebhookParams) -> bool
fn eq(&self, other: &SetWebhookParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SetWebhookParams
impl Serialize for SetWebhookParams
impl Eq for SetWebhookParams
impl StructuralPartialEq for SetWebhookParams
Auto Trait Implementations§
impl Freeze for SetWebhookParams
impl RefUnwindSafe for SetWebhookParams
impl Send for SetWebhookParams
impl Sync for SetWebhookParams
impl Unpin for SetWebhookParams
impl UnwindSafe for SetWebhookParams
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