16 lines
340 B
Rust
16 lines
340 B
Rust
//
|
|
use crate as config;
|
|
|
|
#[derive(Debug, derive_more::Constructor)]
|
|
pub struct RegisteredWebhook {
|
|
id: config::WebhookId,
|
|
auth: config::WebhookAuth,
|
|
}
|
|
impl RegisteredWebhook {
|
|
pub const fn id(&self) -> &config::WebhookId {
|
|
&self.id
|
|
}
|
|
pub const fn auth(&self) -> &config::WebhookAuth {
|
|
&self.auth
|
|
}
|
|
}
|