use crate::csaf::traits::util::generic_with::{WithDate, WithOptionalGroupIds, WithOptionalProductIds};
use crate::csaf::types::csaf_datetime::CsafDateTime;
#[derive(Debug, Clone, Copy)]
pub enum NotPresentInCsaf20 {}
impl NotPresentInCsaf20 {
#[inline]
pub fn into_any<T>(self) -> T {
match self {}
}
#[inline]
pub fn into_any_iter<T>(self) -> Option<std::iter::Empty<T>> {
match self {}
}
}
impl WithOptionalProductIds for NotPresentInCsaf20 {
fn get_product_ids(&self) -> Option<impl Iterator<Item = &str> + '_> {
self.into_any_iter()
}
}
impl WithOptionalGroupIds for NotPresentInCsaf20 {
fn get_group_ids(&self) -> Option<impl Iterator<Item = &str> + '_> {
self.into_any_iter()
}
}
impl WithDate for NotPresentInCsaf20 {
fn get_date(&self) -> CsafDateTime {
self.into_any()
}
}