[][src]Struct mixer_wrappers::rest::webhook_helper::WebHookHelper

pub struct WebHookHelper<'a> {
    pub rest: &'a REST,
}

Helper for webhook-related REST API endpoints.

Fields

rest: &'a REST

Reference to constructing REST struct

Implementations

impl<'a> WebHookHelper<'a>[src]

pub fn register(
    &self,
    events: &[&str],
    url: &str,
    client_secret: &str
) -> Result<(), Error>
[src]

Register webhooks.

See the documentation for more information.

Arguments

  • events - list of events to receive
  • url - URL to receive the call at
  • client_secret - your OAuth app's client_secret

Examples

let helper = api.webhook_helper();
let channel_id = helper.register(&["event_1", "event_2"], "http://example.com/callback", "your_client_secret").unwrap();

Auto Trait Implementations

impl<'a> !RefUnwindSafe for WebHookHelper<'a>

impl<'a> Send for WebHookHelper<'a>

impl<'a> Sync for WebHookHelper<'a>

impl<'a> Unpin for WebHookHelper<'a>

impl<'a> !UnwindSafe for WebHookHelper<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,