pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn builder() -> ClientBuilder<()>
Sourcepub async fn get_issue(&self, key: &str) -> Result<Issue>
pub async fn get_issue(&self, key: &str) -> Result<Issue>
Get an issue by key (e.g., “PROJ-123”).
Sourcepub async fn create_issue(
&self,
input: CreateIssueInput,
) -> Result<CreatedIssue>
pub async fn create_issue( &self, input: CreateIssueInput, ) -> Result<CreatedIssue>
Create an issue.
Sourcepub async fn update_issue(
&self,
key: &str,
input: UpdateIssueInput,
) -> Result<()>
pub async fn update_issue( &self, key: &str, input: UpdateIssueInput, ) -> Result<()>
Update an issue.
Sourcepub async fn search_issues(
&self,
jql: &str,
max_results: Option<u32>,
) -> Result<SearchResult>
pub async fn search_issues( &self, jql: &str, max_results: Option<u32>, ) -> Result<SearchResult>
Search issues using JQL.
Sourcepub async fn list_projects(&self) -> Result<Vec<Project>>
pub async fn list_projects(&self) -> Result<Vec<Project>>
List all projects.
Sourcepub async fn get_project(&self, key: &str) -> Result<Project>
pub async fn get_project(&self, key: &str) -> Result<Project>
Get a project by key.
Sourcepub async fn add_comment(
&self,
issue_key: &str,
input: AddCommentInput,
) -> Result<Comment>
pub async fn add_comment( &self, issue_key: &str, input: AddCommentInput, ) -> Result<Comment>
Add a comment to an issue.
Sourcepub async fn get_transitions(&self, issue_key: &str) -> Result<Vec<Transition>>
pub async fn get_transitions(&self, issue_key: &str) -> Result<Vec<Transition>>
Get available transitions for an issue.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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