Adds a feed_channel implementation which reflects a feed's specific settings per channel. Also added an UnparsedTimedScore to score which allows parsing to score from db in a controlled fashion.
30 lines
636 B
Rust
30 lines
636 B
Rust
mod user;
|
|
pub use user::User;
|
|
mod feed;
|
|
pub use feed::Feed;
|
|
mod feed_channel;
|
|
pub use feed_channel::FeedChannel;
|
|
mod channel;
|
|
pub use channel::Channel;
|
|
mod item;
|
|
pub use item::Item;
|
|
|
|
macro_rules! define_key {
|
|
($name:ident) => {
|
|
#[derive(PartialEq, Debug, Copy, Clone)]
|
|
pub struct $name(i64);
|
|
};
|
|
|
|
($name:ident, $($field:ident : $type:ty),* $(,)?) => {
|
|
#[derive(PartialEq, Debug, Copy, Clone)]
|
|
pub struct $name {
|
|
$($field: $type),*
|
|
}
|
|
};
|
|
}
|
|
|
|
define_key!(UserKey);
|
|
define_key!(FeedKey);
|
|
define_key!(FeedChannelKey, feed_key: FeedKey, channel_key: ChannelKey);
|
|
define_key!(ChannelKey);
|
|
define_key!(ItemKey);
|