2 stable releases
new 1.0.1 | Feb 20, 2025 |
---|
#439 in HTTP server
31 downloads per month
2MB
28K
SLoC
Jira Cloud API v2 client for Rust generated by openapi
If you are looking for API v3, you can get it here.
Usage
Firstly you have to make Configuration
object like that:
let config = Configuration {
base_path: jira_base_url.to_string(),
user_agent: Some("jira-rust/0.0.1".to_owned()),
client: client,
oauth_access_token: Some(jira_personal_access_token),
basic_auth: None,
bearer_access_token: None,
api_key: None,
};
Then you have to call any of API methods by putting config there, like this:
let search_results: SearchResults = search_for_issues_using_jql(
&config,
Some(&jql),
None,
None,
None,
None,
None,
None,
None,
)
.await?;
Finally, process your results, like this:
match search_results.issues {
Some(issue_list) => {
for issue in issue_list {
println!("{:?}", issue);
}
}
None => {
println!("No Issues found.");
}
}
You can find out more info from generated docs.
Dependencies
~8–20MB
~276K SLoC