Struct frankenstein::api_params::SetWebhookParams [−][src]
pub struct SetWebhookParams { pub url: String, pub certificate: Option<InputFile>, pub ip_address: Option<String>, pub max_connections: Option<isize>, pub allowed_updates: Option<Vec<String>>, pub drop_pending_updates: Option<bool>, }
Fields
url: String
certificate: Option<InputFile>
ip_address: Option<String>
max_connections: Option<isize>
allowed_updates: Option<Vec<String>>
drop_pending_updates: Option<bool>
Implementations
impl SetWebhookParams
[src]
impl SetWebhookParams
[src]pub fn new(url: String) -> Self
[src]
pub fn set_url(&mut self, url: String)
[src]
pub fn set_certificate(&mut self, certificate: Option<InputFile>)
[src]
pub fn set_ip_address(&mut self, ip_address: Option<String>)
[src]
pub fn set_max_connections(&mut self, max_connections: Option<isize>)
[src]
pub fn set_allowed_updates(&mut self, allowed_updates: Option<Vec<String>>)
[src]
pub fn set_drop_pending_updates(&mut self, drop_pending_updates: Option<bool>)
[src]
pub fn url(&self) -> String
[src]
pub fn certificate(&self) -> Option<InputFile>
[src]
pub fn ip_address(&self) -> Option<String>
[src]
pub fn max_connections(&self) -> Option<isize>
[src]
pub fn allowed_updates(&self) -> Option<Vec<String>>
[src]
pub fn drop_pending_updates(&self) -> Option<bool>
[src]
Trait Implementations
impl Clone for SetWebhookParams
[src]
impl Clone for SetWebhookParams
[src]fn clone(&self) -> SetWebhookParams
[src]
fn clone(&self) -> SetWebhookParams
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for SetWebhookParams
[src]
impl Debug for SetWebhookParams
[src]impl<'de> Deserialize<'de> for SetWebhookParams
[src]
impl<'de> Deserialize<'de> for SetWebhookParams
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<SetWebhookParams> for SetWebhookParams
[src]
impl PartialEq<SetWebhookParams> for SetWebhookParams
[src]fn eq(&self, other: &SetWebhookParams) -> bool
[src]
fn eq(&self, other: &SetWebhookParams) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &SetWebhookParams) -> bool
[src]
fn ne(&self, other: &SetWebhookParams) -> bool
[src]This method tests for !=
.
impl Serialize for SetWebhookParams
[src]
impl Serialize for SetWebhookParams
[src]impl StructuralPartialEq for SetWebhookParams
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> UnsafeAny for T where
T: Any,
T: Any,