mdbook-journal 0.4.0

journal plugin for mdBook
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::prelude::*;

#[cfg_attr(test, automock(
    type ConfigSource=String;
    type DataDriver=FilePersistence;
))]
pub trait JournalLoaderTrait {
    type ConfigSource;
    type DataDriver: PersistenceTrait;

    fn load(config_source: Self::ConfigSource) -> Result<(Self::DataDriver, TopicMap, PathBuf)>;

    fn install(config_source: Self::ConfigSource) -> Result<()>;
}