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
extern crate chrono;
extern crate reqwest;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
mod projects;
mod stories;
mod tasks;
mod client;
mod error;
mod users;
pub use projects::{Project, ProjectGroup};
pub use stories::{Story, Team};
pub use tasks::{Task, TaskStatusCount};
pub use error::{ApiError, Error};
pub use users::{User};
pub struct Client {
uri: String
}
#[derive(Serialize, Deserialize, Debug)]
#[serde(untagged)]
pub enum ApiResult<T, ApiError> {
Ok(T),
Err(ApiError),
}