2026-02-05 13:10:21 -08:00
|
|
|
mod user;
|
|
|
|
|
pub use user::User;
|
2026-02-05 13:59:34 -08:00
|
|
|
mod feed;
|
|
|
|
|
pub use feed::Feed;
|
2026-02-06 14:49:13 -08:00
|
|
|
mod feed_channel;
|
|
|
|
|
pub use feed_channel::FeedChannel;
|
2026-02-05 13:59:34 -08:00
|
|
|
mod channel;
|
|
|
|
|
pub use channel::Channel;
|
2026-02-06 13:03:31 -08:00
|
|
|
mod item;
|
|
|
|
|
pub use item::Item;
|
2026-02-05 13:10:21 -08:00
|
|
|
|
|
|
|
|
macro_rules! define_key {
|
|
|
|
|
($name:ident) => {
|
|
|
|
|
#[derive(PartialEq, Debug, Copy, Clone)]
|
|
|
|
|
pub struct $name(i64);
|
|
|
|
|
};
|
2026-02-06 14:49:13 -08:00
|
|
|
|
|
|
|
|
($name:ident, $($field:ident : $type:ty),* $(,)?) => {
|
|
|
|
|
#[derive(PartialEq, Debug, Copy, Clone)]
|
|
|
|
|
pub struct $name {
|
|
|
|
|
$($field: $type),*
|
|
|
|
|
}
|
|
|
|
|
};
|
2026-02-05 13:10:21 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
define_key!(UserKey);
|
2026-02-05 13:59:34 -08:00
|
|
|
define_key!(FeedKey);
|
2026-02-06 14:49:13 -08:00
|
|
|
define_key!(FeedChannelKey, feed_key: FeedKey, channel_key: ChannelKey);
|
2026-02-05 13:59:34 -08:00
|
|
|
define_key!(ChannelKey);
|
2026-02-06 13:03:31 -08:00
|
|
|
define_key!(ItemKey);
|