1mod client;
2mod types;
3
4pub use client::{BacklogClient, BacklogError, BacklogResult};
5pub use types::*;
6
7pub use serde_json::Value as JsonValue;
9
10#[cfg(test)]
11mod tests {
12 use super::*;
13
14 #[test]
15 fn test_client_creation() {
16 let client = BacklogClient::new("https://test.backlog.com", "test_api_key");
17 let client2 = BacklogClient::new("https://example.backlog.com", "another_key");
20 drop(client);
22 drop(client2);
23 }
24
25 #[test]
26 fn test_client_with_custom_client() {
27 let client = BacklogClient::with_client(
28 "https://test.backlog.com",
29 "test_key",
30 reqwest::Client::new(),
31 );
32 drop(client);
34 }
35}