1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
extern crate chrono;
#[macro_use]
extern crate failure;
extern crate ommui_file_loading;
extern crate ommui_string_patterns;
extern crate serde;
#[macro_use]
extern crate serde_derive;
#[cfg(test)]
#[macro_use]
extern crate serde_json;
extern crate indexmap;
#[cfg(feature = "reqwest")]
extern crate reqwest;
extern crate uuid;

#[cfg(feature = "client")]
pub mod client;
#[cfg(feature = "filesystem")]
pub mod filesystem;

pub mod device;
pub mod error;
pub mod ommui;
pub mod samplic;

pub use error::{Error, ErrorKind};

pub type Result<T> = std::result::Result<T, error::Error>;

use uuid::Uuid;

trait LoadFromPathPattern: Sized {
    fn load_from_path_pattern(pattern: &str) -> Result<Self>;
}