pub struct LinearClient { /* private fields */ }
Implementations§
Source§impl LinearClient
impl LinearClient
pub fn new(api_key: String) -> Result<Self>
pub async fn get_viewer(&self) -> Result<User>
pub async fn get_assigned_issues( &self, project_ids: Option<Vec<String>>, ) -> Result<Vec<LinearIssue>>
pub async fn add_label_to_issue( &self, issue_id: &str, label_name: &str, ) -> Result<()>
pub async fn get_or_create_label(&self, label_name: &str) -> Result<String>
pub async fn check_issue_has_label( &self, issue_id: &str, label_name: &str, ) -> Result<bool>
Trait Implementations§
Source§impl Clone for LinearClient
impl Clone for LinearClient
Source§fn clone(&self) -> LinearClient
fn clone(&self) -> LinearClient
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 LinearClient
impl !RefUnwindSafe for LinearClient
impl Send for LinearClient
impl Sync for LinearClient
impl Unpin for LinearClient
impl !UnwindSafe for LinearClient
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