[][src]Crate bitbucket

bitbucket-rs

Bitbucket is an async library that provides Rust bindings for the Core API Atlassian Bitbucket server (formerly known as Stash).

For now only the main resources are covered in this library.

Examples:

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(())
}

Re-exports

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

Modules

client

Client represents a bitbucket server client.

prelude

Prelude exports the main library types for import convenience.

resources

Resources incapsulates all the Bitbucket server resources.