pub struct BitbucketPullRequestIssue {
pub key: String,
pub url: String,
}
Expand description
The BitbucketPullRequestIssue
struct represents an issue associated with a pull request returned by the Bitbucket API.
It contains information about the issue, such as the key and URL of the issue.
This struct is usually used when working with the BitbucketClient
to fetch issues associated with a specific pull request.
§Example
Suppose you want to fetch all issues associated with a pull request using the BitbucketClient::get_pull_request_issues()
method.
You’ll receive a Result<Vec<BitbucketPullRequestIssue>>
, which you can use to access and process the associated issues:
use deployment_changelog::api::bitbucket::BitbucketClient;
// Suppose you have a BitbucketClient named 'client'
let project_key = "PROJECT";
let repo_slug = "my-repo";
let pull_request_id = 42;
let issues_result = client.get_pull_request_issues(project_key, repo_slug, pull_request_id).await;
match issues_result {
Ok(issues) => {
for issue in issues {
println!("Issue key: {}", issue.key);
println!("Issue URL: {}", issue.url);
}
},
Err(error) => {
println!("Error fetching pull request issues: {:?}", error);
}
}
Fields§
§key: String
§url: String
Trait Implementations§
Source§impl Debug for BitbucketPullRequestIssue
impl Debug for BitbucketPullRequestIssue
Source§impl<'de> Deserialize<'de> for BitbucketPullRequestIssue
impl<'de> Deserialize<'de> for BitbucketPullRequestIssue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BitbucketPullRequestIssue
impl Display for BitbucketPullRequestIssue
Source§impl Hash for BitbucketPullRequestIssue
impl Hash for BitbucketPullRequestIssue
impl Eq for BitbucketPullRequestIssue
impl StructuralPartialEq for BitbucketPullRequestIssue
Auto Trait Implementations§
impl Freeze for BitbucketPullRequestIssue
impl RefUnwindSafe for BitbucketPullRequestIssue
impl Send for BitbucketPullRequestIssue
impl Sync for BitbucketPullRequestIssue
impl Unpin for BitbucketPullRequestIssue
impl UnwindSafe for BitbucketPullRequestIssue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.