Skip to main content

PinnedWork

Struct PinnedWork 

Source
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<'_>

Source

pub fn recent_action_runs(&self, repo: &str) -> Result<Page<WorkflowRun>, Error>

Source

pub fn action_run(&self, repo: &str, run_id: u64) -> Result<WorkflowRun, Error>

Source

pub fn action_jobs(&self, repo: &str, run_id: u64) -> Result<Page<Job>, Error>

Source

pub fn action_deployments(&self, repo: &str) -> Result<Page<Deployment>, Error>

Source

pub fn action_releases(&self, repo: &str) -> Result<Page<Release>, Error>

Source§

impl PinnedWork<'_>

Source

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.

Source

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<'_>

Source

pub fn copilot_agent_session( &self, session_id: &str, ) -> Result<CopilotAgentSession, Error>

One session document, with the pinned credential.

Source

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<'_>

Source

pub fn login(&self) -> &str

The work login, as gh spells it, that GitHub verified the credential belongs to.

Source

pub fn account_id(&self) -> &str

The immutable node ID of the account the credential belongs to. Key anything kept per account by it: a login can be renamed and reused.

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>
where &'a Client: Freeze, *const u8 is !null: Freeze, PhantomData<u8>: Freeze, &'static str: Freeze,

§

impl<'a> Move for PinnedWork<'a>

§

impl<'a> Send for PinnedWork<'a>
where &'a Client: Send, RawVecInner: Send, &'static str: Send,

§

impl<'a> Sync for PinnedWork<'a>
where Arc<Credentials>: Sync, RawVecInner: Sync, OnceLock<String>: Sync, Mutex<Option<Verified>>: Sync, Mutex<HashMap<String, (Instant, Vec<GhUser>)>>: Sync, Mutex<LruInner<DiffResponse>>: Sync, Mutex<LruInner<String>>: Sync,

§

impl<'a> Unpin for PinnedWork<'a>
where &'a Client: Unpin, *const u8 is !null: Unpin, &'static str: Unpin,

§

impl<'a> UnsafeUnpin for PinnedWork<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more