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
36
37
38
39
40
41
42
43
44
45
46
//! bitbucket-rs
//!
//! Bitbucket is an async library that provides Rust bindings for
//! the [Core API Atlassian Bitbucket server](https://docs.atlassian.com/bitbucket-server/rest/7.1.0/bitbucket-rest.html)
//!  (formerly known as Stash).  
//!
//!  For now only the main resources are covered in this library.
//!
//!  # Examples:
//!
//! ```rust
//! extern crate bitbucket;
//! use bitbucket::prelude::*;
//! use bitbucket::client::Client;
//!
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//!    let client = Client::new(
//!        "my_token".to_string(),
//!        "http://bitbucket.company.com".to_string(),
//!         false,
//!         false,
//!     );
//!     let project = client
//!         .projects()
//!         .get("my_project")
//!         .await
//!         .unwrap();
//!     Ok(())
//! }
//! ```

#[macro_use]
extern crate serde;

pub(crate) mod builder;
pub mod client;
pub mod prelude;
pub mod resources;

pub use resources::comments;
pub use resources::projects;
pub use resources::pullrequests;
pub use resources::repositories;
pub use resources::webhooks;