asimov-readwise-module 0.1.1

ASIMOV module.
Documentation
// This is free and unencumbered software released into the public domain.

use crate::api::types::ReadwiseType;
use crate::providers::provider::Provider;

pub static READWISE_HIGHLIGHTS: Provider = Provider {
    id: ReadwiseType::HIGHLIGHTS_ID,
    url: "https://readwise.io/highlights",
};

pub static READWISE_BOOKLIST: Provider = Provider {
    id: ReadwiseType::BOOKLIST_ID,
    url: "https://readwise.io/books",
};

pub static READWISE_TAGS: Provider = Provider {
    id: ReadwiseType::TAGS_ID,
    url: "https://readwise.io/tags",
};

pub static URL_PREFIX_TO_PROVIDER: [(&str, &'static Provider); 3] = [
    ("https://readwise.io/highlights", &READWISE_HIGHLIGHTS),
    ("https://readwise.io/books", &READWISE_BOOKLIST),
    ("https://readwise.io/tags", &READWISE_TAGS),
];