2023-07-25 14:56:59 +01:00
|
|
|
use crate::prelude::*;
|
|
|
|
|
2023-07-25 10:55:02 +01:00
|
|
|
mod add;
|
2023-07-25 10:53:26 +01:00
|
|
|
mod find;
|
|
|
|
|
2023-07-25 14:56:59 +01:00
|
|
|
pub use add::add;
|
|
|
|
pub use find::find;
|
|
|
|
|
|
|
|
type Link = atom_syndication::Link;
|
|
|
|
|
2023-07-28 18:35:41 +01:00
|
|
|
pub struct HistoryEnv {
|
|
|
|
pub find: HistoryFind,
|
|
|
|
pub add: HistoryAdd,
|
|
|
|
}
|
|
|
|
|
2023-07-25 14:56:59 +01:00
|
|
|
pub type HistoryFind = fn(&Link, &str) -> Result<bool>;
|
|
|
|
pub type HistoryAdd = fn(&Link, &str) -> Result<()>;
|