Struct twitch_api2::helix::webhooks::hub::WebhookHubBody [−][src]
#[non_exhaustive]pub struct WebhookHubBody<T: Topic> { pub callback: String, pub mode: WebhookSubscriptionMode, pub topic: T, pub lease_seconds: u32, pub secret: Option<String>, }
helix
only.Body Parameters for Subscribe to/Unsubscribe From Events
subscribe-tounsubscribe-from-events
Notes
This body is quite different from the official body. If you want the true representation in text, see helix::HelixRequestBody::try_to_body
on WebhookHubRequest<T: Topic>
Fields (Non-exhaustive)
Struct {{ .. }}
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.callback: String
URL where notifications will be delivered.
mode: WebhookSubscriptionMode
Type of request. Valid values: subscribe, unsubscribe
topic: T
URL for the topic to subscribe to or unsubscribe from. topic maps to a new Twitch API endpoint.
lease_seconds: u32
Number of seconds until the subscription expires. Default: 0. Maximum: 864000.
secret: Option<String>
Secret used to sign notification payloads
Implementations
impl<T: Topic> WebhookHubBody<T>
[src]
impl<T: Topic> WebhookHubBody<T>
[src]pub fn builder() -> WebhookHubBodyBuilder<((), (), (), (), ()), T>
[src]
Create a builder for building WebhookHubBody
.
On the builder, call .callback(...)
, .mode(...)
, .topic(...)
, .lease_seconds(...)
, .secret(...)
to set the values of the fields.
Finally, call .build()
to create the instance of WebhookHubBody
.
Trait Implementations
impl<T: Clone + Topic> Clone for WebhookHubBody<T>
[src]
impl<T: Clone + Topic> Clone for WebhookHubBody<T>
[src]fn clone(&self) -> WebhookHubBody<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug + Topic> Debug for WebhookHubBody<T>
[src]
impl<T: Debug + Topic> Debug for WebhookHubBody<T>
[src]impl<'de, T: Topic> Deserialize<'de> for WebhookHubBody<T> where
T: Topic,
[src]
impl<'de, T: Topic> Deserialize<'de> for WebhookHubBody<T> where
T: Topic,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: Topic> HelixRequestBody for WebhookHubBody<T>
[src]
impl<T: Topic> HelixRequestBody for WebhookHubBody<T>
[src]impl<T: PartialEq + Topic> PartialEq<WebhookHubBody<T>> for WebhookHubBody<T>
[src]
impl<T: PartialEq + Topic> PartialEq<WebhookHubBody<T>> for WebhookHubBody<T>
[src]fn eq(&self, other: &WebhookHubBody<T>) -> bool
[src]
fn ne(&self, other: &WebhookHubBody<T>) -> bool
[src]
impl<T: Topic> Serialize for WebhookHubBody<T> where
T: Topic,
[src]
impl<T: Topic> Serialize for WebhookHubBody<T> where
T: Topic,
[src]impl<T: Topic> StructuralPartialEq for WebhookHubBody<T>
[src]
impl<T: Topic> StructuralPartialEq for WebhookHubBody<T>
[src]Auto Trait Implementations
impl<T> RefUnwindSafe for WebhookHubBody<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for WebhookHubBody<T> where
T: RefUnwindSafe,
impl<T> Send for WebhookHubBody<T> where
T: Send,
impl<T> Send for WebhookHubBody<T> where
T: Send,
impl<T> Sync for WebhookHubBody<T> where
T: Sync,
impl<T> Sync for WebhookHubBody<T> where
T: Sync,
impl<T> Unpin for WebhookHubBody<T> where
T: Unpin,
impl<T> Unpin for WebhookHubBody<T> where
T: Unpin,
impl<T> UnwindSafe for WebhookHubBody<T> where
T: UnwindSafe,
impl<T> UnwindSafe for WebhookHubBody<T> where
T: UnwindSafe,
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]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> 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> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
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> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,