Serialisation
This commit is contained in:
parent
136f2b7a9b
commit
39bd9dd054
|
|
@ -20,6 +20,7 @@ r2d2 = "0.8.9"
|
||||||
rand = "0.8.4"
|
rand = "0.8.4"
|
||||||
regex = "1.5.4"
|
regex = "1.5.4"
|
||||||
reqwest = "0.11.6"
|
reqwest = "0.11.6"
|
||||||
|
serde = "1.0.130"
|
||||||
serde_json = "1.0.69"
|
serde_json = "1.0.69"
|
||||||
serenity = { version = "0.10", features = [ "collector" ] }
|
serenity = { version = "0.10", features = [ "collector" ] }
|
||||||
tokio = { version = "1.13.0", features = ["sync", "macros", "rt-multi-thread"] }
|
tokio = { version = "1.13.0", features = ["sync", "macros", "rt-multi-thread"] }
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ use reqwest::Error as ReqwestError;
|
||||||
|
|
||||||
pub type ManifoldResult<T> = Result<T, ManifoldError>;
|
pub type ManifoldResult<T> = Result<T, ManifoldError>;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
pub struct ManifoldError {
|
pub struct ManifoldError {
|
||||||
pub details: String
|
pub details: String
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
|
#[macro_use] extern crate serde;
|
||||||
|
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue