pub struct Linear { /* private fields */ }Expand description
Typed Linear provider client.
Implementations§
Source§impl Linear
impl Linear
Sourcepub async fn list_issues(
&self,
filter: LinearListIssuesFilter,
) -> Result<LinearListIssuesResult>
pub async fn list_issues( &self, filter: LinearListIssuesFilter, ) -> Result<LinearListIssuesResult>
List issues, optionally filtered. Tolerates envelope {issues} and bare [] responses.
Sourcepub async fn get_issue(&self, id: &str) -> Result<LinearIssue>
pub async fn get_issue(&self, id: &str) -> Result<LinearIssue>
Get a single issue by Linear UUID.
Sourcepub async fn create_issue(
&self,
input: LinearCreateIssueInput,
) -> Result<LinearIssue>
pub async fn create_issue( &self, input: LinearCreateIssueInput, ) -> Result<LinearIssue>
Create a new Linear issue.
Sourcepub async fn update_issue(
&self,
id: &str,
patch: LinearUpdateIssuePatch,
) -> Result<LinearIssue>
pub async fn update_issue( &self, id: &str, patch: LinearUpdateIssuePatch, ) -> Result<LinearIssue>
Patch an issue. Only fields set on the patch are forwarded (Option<T> fields skipped when None).
Sourcepub async fn add_comment(
&self,
issue_id: &str,
body: &str,
) -> Result<LinearComment>
pub async fn add_comment( &self, issue_id: &str, body: &str, ) -> Result<LinearComment>
Post a comment to an existing issue.
Sourcepub async fn list_teams(&self) -> Result<Vec<LinearTeam>>
pub async fn list_teams(&self) -> Result<Vec<LinearTeam>>
List all teams visible to the authenticated user.
Sourcepub async fn list_projects(
&self,
filter: LinearListProjectsFilter,
) -> Result<Vec<LinearProject>>
pub async fn list_projects( &self, filter: LinearListProjectsFilter, ) -> Result<Vec<LinearProject>>
List Linear projects, optionally filtered by team.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Linear
impl !UnwindSafe for Linear
impl Freeze for Linear
impl Send for Linear
impl Sync for Linear
impl Unpin for Linear
impl UnsafeUnpin for Linear
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