edm-core 0.2.0

Core types and traits for edm.
Documentation
1
2
3
4
5
6
7
8
9
use crate::response::WebHook;

/// Gets a webhook with the specific name.
#[inline]
pub(crate) fn get_webhook(name: &str) -> Option<&'static WebHook> {
    super::WEBHOOK_DEFINITIONS
        .get()
        .and_then(|webhooks| webhooks.get(name))
}