pub mod category;
pub mod content;
use crate::atom::feed::AtomLink;
use content::Content;
use serde::{de::DeserializeOwned, Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct Entry<T> {
#[serde(rename = "m:etag")]
pub etag: Option<String>,
pub id: String,
pub title: String,
pub updated: String,
pub category: String,
#[serde(rename = "link")]
pub links: Vec<AtomLink>,
pub content: Content<T>,
}
impl<T> std::str::FromStr for Entry<T>
where
T: DeserializeOwned,
{
type Err = quick_xml::DeError;
fn from_str(s: &str) -> Result<Self, Self::Err> {
quick_xml::de::from_str(s)
}
}