sylvia_iot_corelib/
constants.rs1pub struct CacheEngine;
4pub struct ContentType;
5pub struct DbEngine;
6pub struct MqEngine;
7
8impl CacheEngine {
9 pub const NONE: &'static str = "none";
10 pub const MEMORY: &'static str = "memory";
11}
12
13impl ContentType {
14 pub const CSV: &'static str = "text/csv";
15 pub const JSON: &'static str = "application/json";
16}
17
18impl DbEngine {
19 pub const MONGODB: &'static str = "mongodb";
20 pub const SQLITE: &'static str = "sqlite";
21}
22
23impl MqEngine {
24 pub const EMQX: &'static str = "emqx";
25 pub const RABBITMQ: &'static str = "rabbitmq";
26 pub const RUMQTTD: &'static str = "rumqttd";
27}