pub struct GitHubIssues { /* private fields */ }Expand description
Tracker over the GitHub Issues REST API.
No Debug derive: kept explicit so a field added later cannot print
Debug would print it wherever a log line or a panic message met the
adapter.
Implementations§
Source§impl GitHubIssues
impl GitHubIssues
Trait Implementations§
Source§impl Debug for GitHubIssues
impl Debug for GitHubIssues
Source§impl Tracker for GitHubIssues
impl Tracker for GitHubIssues
Source§fn status<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
dest: &'life1 Destination,
cred: &'life2 Credential,
external_id: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<TicketStatus, TrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn status<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
dest: &'life1 Destination,
cred: &'life2 Credential,
external_id: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<TicketStatus, TrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
GitHub has a ticket to read back, so this is a real read: GET the
issue and map what it says. state_reason distinguishes a
completed close from a “not planned” one — both are terminal, so
both are Closed; an open issue with an assignee is the one signal
GitHub gives that somebody picked it up.
Source§fn file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
dest: &'life1 Destination,
cred: &'life2 Credential,
draft: &'life3 TicketDraft,
) -> Pin<Box<dyn Future<Output = Result<Filed, TrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
dest: &'life1 Destination,
cred: &'life2 Credential,
draft: &'life3 TicketDraft,
) -> Pin<Box<dyn Future<Output = Result<Filed, TrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Files
draft into dest, authenticating as the company cred
speaks for. Idempotent on draft.idempotency_key where the tracker
allows it. Read moreSource§fn comment<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
dest: &'life1 Destination,
_cred: &'life2 Credential,
_external_id: &'life3 str,
_comment: &'life4 TicketComment,
) -> Pin<Box<dyn Future<Output = Result<(), TrackerError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
fn comment<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
dest: &'life1 Destination,
_cred: &'life2 Credential,
_external_id: &'life3 str,
_comment: &'life4 TicketComment,
) -> Pin<Box<dyn Future<Output = Result<(), TrackerError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
Adds
comment to the existing ticket external_id in dest —
e.g. linking a duplicate report to the ticket it duplicates, so the
tracker holds one ticket per defect rather than one per report. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for GitHubIssues
impl !UnwindSafe for GitHubIssues
impl Freeze for GitHubIssues
impl Send for GitHubIssues
impl Sync for GitHubIssues
impl Unpin for GitHubIssues
impl UnsafeUnpin for GitHubIssues
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