git_next_core/config/
registered_webhook.rs

1//
2use crate::config::{WebhookAuth, WebhookId};
3
4#[derive(Debug, derive_more::Constructor)]
5pub struct RegisteredWebhook {
6    id: WebhookId,
7    auth: WebhookAuth,
8}
9impl RegisteredWebhook {
10    #[must_use]
11    pub const fn id(&self) -> &WebhookId {
12        &self.id
13    }
14
15    #[must_use]
16    pub const fn auth(&self) -> &WebhookAuth {
17        &self.auth
18    }
19}