pub mod channels;
pub mod event_types;
pub mod log;
pub mod rules;
pub use channels::{
CreateNotificationChannelRequest, NotificationChannelResponse, TestNotificationResponse,
UpdateNotificationChannelRequest,
};
pub use event_types::{
NotificationDeliveryStatus, NotificationEventType, ParseNotificationDeliveryStatusError,
ParseNotificationEventTypeError,
};
pub use log::NotificationLogResponse;
pub use rules::{
CreateNotificationRuleRequest, NotificationRuleResponse, UpdateNotificationRuleRequest,
};
pub(crate) fn deserialize_nullable_value<'de, D>(
deserializer: D,
) -> Result<Option<serde_json::Value>, D::Error>
where
D: serde::Deserializer<'de>,
{
use serde::Deserialize as _;
let val = serde_json::Value::deserialize(deserializer)?;
Ok(Some(val))
}