pub struct PinnedWork<'a> { /* private fields */ }Expand description
The work account’s credential and the account GitHub verified it belongs to, for one operation. It borrows the client and is never stored, serialized or printed.
Implementations§
Source§impl PinnedWork<'_>
impl PinnedWork<'_>
pub fn recent_action_runs(&self, repo: &str) -> Result<Page<WorkflowRun>, Error>
pub fn action_run(&self, repo: &str, run_id: u64) -> Result<WorkflowRun, Error>
pub fn action_jobs(&self, repo: &str, run_id: u64) -> Result<Page<Job>, Error>
pub fn action_deployments(&self, repo: &str) -> Result<Page<Deployment>, Error>
pub fn action_releases(&self, repo: &str) -> Result<Page<Release>, Error>
Source§impl PinnedWork<'_>
impl PinnedWork<'_>
Sourcepub fn list_my_copilot_agent_tasks(&self) -> Result<TaskList, Error>
pub fn list_my_copilot_agent_tasks(&self) -> Result<TaskList, Error>
The work account’s recent tasks across every repository. Missing repository names and pull node ids are resolved once per repository, not once per task, and every request goes out with the pinned credential.
Sourcepub fn get_copilot_agent_task_detail(
&self,
task_id: &str,
subject: Option<Subject>,
) -> Result<TaskDetail, Error>
pub fn get_copilot_agent_task_detail( &self, task_id: &str, subject: Option<Subject>, ) -> Result<TaskDetail, Error>
One task and its sessions, by id, with the pinned credential.
Source§impl PinnedWork<'_>
impl PinnedWork<'_>
Sourcepub fn copilot_agent_session(
&self,
session_id: &str,
) -> Result<CopilotAgentSession, Error>
pub fn copilot_agent_session( &self, session_id: &str, ) -> Result<CopilotAgentSession, Error>
One session document, with the pinned credential.
Sourcepub fn copilot_agent_session_log(
&self,
session_id: &str,
max_bytes: usize,
) -> Result<SessionLog, Error>
pub fn copilot_agent_session_log( &self, session_id: &str, max_bytes: usize, ) -> Result<SessionLog, Error>
One session’s log, parsed, with the pinned credential. max_bytes
never goes above MAX_LOG_BYTES; a log the cap cut says so.
Source§impl PinnedWork<'_>
impl PinnedWork<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PinnedWork<'a>
impl<'a> !UnwindSafe for PinnedWork<'a>
impl<'a> Forget for PinnedWork<'a>
impl<'a> Freeze for PinnedWork<'a>
impl<'a> Move for PinnedWork<'a>
impl<'a> Send for PinnedWork<'a>
impl<'a> Sync for PinnedWork<'a>
impl<'a> Unpin for PinnedWork<'a>
impl<'a> UnsafeUnpin for PinnedWork<'a>where
&'a Client: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
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