Struct telexide::client::WebhookOptions [−][src]
pub struct WebhookOptions { pub url: Option<Uri>, pub path: String, pub port: u16, pub ip: IpAddr, }
Represents the options to set for the webhook handling
Fields
url: Option<Uri>
path: String
port: u16
ip: IpAddr
Implementations
impl WebhookOptions
[src]
impl WebhookOptions
[src]pub fn new() -> Self
[src]
Creates a new WebhookOptions
with default values
By default it will listen on 127.0.0.1:8006 and the path being the root
pub fn set_path(&mut self, path: &str) -> &mut Self
[src]
Sets the path of the webhook
pub fn set_port(&mut self, port: u16) -> &mut Self
[src]
Sets the port the webhook will be listening on
pub fn set_ip<T: Into<IpAddr>>(&mut self, ip: T) -> &mut Self
[src]
Sets the IP the webhook will be listening on
pub fn set_url(&mut self, url: &str) -> TelegramResult<&mut Self>
[src]
Sets the url of the webhook
Trait Implementations
impl Clone for WebhookOptions
[src]
impl Clone for WebhookOptions
[src]fn clone(&self) -> WebhookOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for WebhookOptions
[src]
impl Default for WebhookOptions
[src]Auto Trait Implementations
impl RefUnwindSafe for WebhookOptions
impl RefUnwindSafe for WebhookOptions
impl Send for WebhookOptions
impl Send for WebhookOptions
impl Sync for WebhookOptions
impl Sync for WebhookOptions
impl Unpin for WebhookOptions
impl Unpin for WebhookOptions
impl UnwindSafe for WebhookOptions
impl UnwindSafe for WebhookOptions
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
[src]
impl<T> CloneAny for T where
T: Any + Clone,
[src]pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
[src]
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
[src]
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
[src]
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
[src]
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,