pub struct LinearTools { /* private fields */ }Implementations§
Source§impl LinearTools
impl LinearTools
Source§impl LinearTools
impl LinearTools
Sourcepub async fn search_issues(
&self,
query: Option<String>,
include_comments: Option<bool>,
priority: Option<i32>,
state_id: Option<String>,
assignee_id: Option<String>,
team_id: Option<String>,
project_id: Option<String>,
created_after: Option<String>,
created_before: Option<String>,
updated_after: Option<String>,
updated_before: Option<String>,
first: Option<i32>,
after: Option<String>,
) -> Result<SearchResult>
pub async fn search_issues( &self, query: Option<String>, include_comments: Option<bool>, priority: Option<i32>, state_id: Option<String>, assignee_id: Option<String>, team_id: Option<String>, project_id: Option<String>, created_after: Option<String>, created_before: Option<String>, updated_after: Option<String>, updated_before: Option<String>, first: Option<i32>, after: Option<String>, ) -> Result<SearchResult>
Search Linear issues with full-text search or filters
Sourcepub async fn read_issue(&self, issue: String) -> Result<IssueDetails>
pub async fn read_issue(&self, issue: String) -> Result<IssueDetails>
Read a single Linear issue
Sourcepub async fn create_issue(
&self,
team_id: String,
title: String,
description: Option<String>,
priority: Option<i32>,
assignee_id: Option<String>,
project_id: Option<String>,
state_id: Option<String>,
parent_id: Option<String>,
label_ids: Vec<String>,
) -> Result<CreateIssueResult>
pub async fn create_issue( &self, team_id: String, title: String, description: Option<String>, priority: Option<i32>, assignee_id: Option<String>, project_id: Option<String>, state_id: Option<String>, parent_id: Option<String>, label_ids: Vec<String>, ) -> Result<CreateIssueResult>
Create a new Linear issue
Sourcepub async fn add_comment(
&self,
issue: String,
body: String,
parent_id: Option<String>,
) -> Result<CommentResult>
pub async fn add_comment( &self, issue: String, body: String, parent_id: Option<String>, ) -> Result<CommentResult>
Add a comment to a Linear issue
Sourcepub async fn archive_issue(&self, issue: String) -> Result<ArchiveIssueResult>
pub async fn archive_issue(&self, issue: String) -> Result<ArchiveIssueResult>
Archive a Linear issue
Sourcepub async fn get_metadata(
&self,
kind: MetadataKind,
search: Option<String>,
team_id: Option<String>,
first: Option<i32>,
after: Option<String>,
) -> Result<GetMetadataResult>
pub async fn get_metadata( &self, kind: MetadataKind, search: Option<String>, team_id: Option<String>, first: Option<i32>, after: Option<String>, ) -> Result<GetMetadataResult>
Get metadata (users, teams, projects, workflow states, or labels)
Trait Implementations§
Source§impl Clone for LinearTools
impl Clone for LinearTools
Source§fn clone(&self) -> LinearTools
fn clone(&self) -> LinearTools
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LinearTools
impl RefUnwindSafe for LinearTools
impl Send for LinearTools
impl Sync for LinearTools
impl Unpin for LinearTools
impl UnsafeUnpin for LinearTools
impl UnwindSafe for LinearTools
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