pub struct GithubRunsRequest {
pub repository: Option<String>,
pub branch: Option<String>,
pub limit: Option<u32>,
}Expand description
Which runs to list.
There is no repository here, and that is the point. The daemon answers
for the repository it already has selected — the same one the dashboard is
looking at. A caller-supplied owner/repo would turn remote control into a
general-purpose GitHub client running under the user’s token, which is a
much larger thing than “show me my CI”.
Fields§
§repository: Option<String>Which repository to answer for — an id this machine already
reported, never an owner/repo the caller invented.
This is the same constraint TerminalAttachRequest::session_id carries,
and for the same reason: naming one of the machine’s own things is not
the general-purpose GitHub client that an arbitrary owner/repo would
make of this surface. The dispatcher refuses anything the registry does
not hold.
Absent means the repository the machine has selected, which is what a phone opening the screen cold wants, and what this asked for before the field existed. It never changes that selection — the dashboard on the user’s desk is looking at it too.
branch: Option<String>Only runs on this branch. Absent means every branch, which is what a phone opening the screen cold wants.
limit: Option<u32>Clamped to super::limits::MAX_WORKFLOW_RUNS. Absent means the
maximum — an omitted bound is the safest bound, not an unbounded one.
Trait Implementations§
Source§impl Clone for GithubRunsRequest
impl Clone for GithubRunsRequest
Source§fn clone(&self) -> GithubRunsRequest
fn clone(&self) -> GithubRunsRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GithubRunsRequest
impl Debug for GithubRunsRequest
Source§impl<'de> Deserialize<'de> for GithubRunsRequest
impl<'de> Deserialize<'de> for GithubRunsRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for GithubRunsRequest
Source§impl PartialEq for GithubRunsRequest
impl PartialEq for GithubRunsRequest
Source§impl Serialize for GithubRunsRequest
impl Serialize for GithubRunsRequest
impl StructuralPartialEq for GithubRunsRequest
Auto Trait Implementations§
impl Freeze for GithubRunsRequest
impl RefUnwindSafe for GithubRunsRequest
impl Send for GithubRunsRequest
impl Sync for GithubRunsRequest
impl Unpin for GithubRunsRequest
impl UnsafeUnpin for GithubRunsRequest
impl UnwindSafe for GithubRunsRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.