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>,
}
Fields
url: String
certificate: Option<InputFile>
ip_address: Option<String>
max_connections: Option<u32>
allowed_updates: Option<Vec<AllowedUpdate>>
drop_pending_updates: Option<bool>
Implementations
sourceimpl 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) to set the values of the fields.
Finally, call .build()
to create the instance of SetWebhookParams
.
Trait Implementations
sourceimpl Clone for SetWebhookParams
impl Clone for SetWebhookParams
sourcefn clone(&self) -> SetWebhookParams
fn clone(&self) -> SetWebhookParams
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 SetWebhookParams
impl Debug for SetWebhookParams
sourceimpl<'de> Deserialize<'de> for SetWebhookParams
impl<'de> Deserialize<'de> for SetWebhookParams
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<SetWebhookParams> for SetWebhookParams
impl PartialEq<SetWebhookParams> for SetWebhookParams
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SetWebhookParams) -> bool
fn ne(&self, other: &SetWebhookParams) -> bool
This method tests for !=
.
sourceimpl Serialize for SetWebhookParams
impl Serialize for SetWebhookParams
impl StructuralPartialEq for SetWebhookParams
Auto Trait Implementations
impl RefUnwindSafe for SetWebhookParams
impl Send for SetWebhookParams
impl Sync for SetWebhookParams
impl Unpin for SetWebhookParams
impl UnwindSafe for SetWebhookParams
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more