#[non_exhaustive]pub struct CheckTrigger {
pub repo: Resource,
pub repo_id: u64,
pub head_sha: String,
pub base_sha: String,
pub base_ref: String,
pub kind: CheckTriggerKind,
pub delivery_id: Option<String>,
pub head_ref: Option<String>,
pub author_login: Option<String>,
}Expand description
A verified delivery that calls for the check on head_sha, against the
base branch base_ref.
A check run attaches to a commit, not to a pull request: a success on
head_sha satisfies every pull request whose head is that commit. So a
check is only meaningful — and must only be posted — against a base the
required check protects; the caller decides that from base_ref, never
from anything else in the delivery.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.repo: ResourceThe repository the check is posted on (the pull request’s base).
repo_id: u64Its forge id.
head_sha: StringThe commit the check is for.
base_sha: StringThe base branch’s tip the delivery named (a pull request’s may be stale; the caller re-reads it).
base_ref: StringThe base branch, without refs/heads/.
kind: CheckTriggerKindPull request, merge group or rerequest.
delivery_id: Option<String>GitHub’s delivery id, for de-duplication.
head_ref: Option<String>For a pull request delivery: its head branch, as the delivery says — a hint for the Dependabot re-sign, which re-reads it from GitHub.
For a pull request delivery: who opened it, as the delivery says (a
hint only, like head_ref).
Trait Implementations§
Source§impl Clone for CheckTrigger
impl Clone for CheckTrigger
Source§impl Debug for CheckTrigger
impl Debug for CheckTrigger
impl Eq for CheckTrigger
Source§impl PartialEq for CheckTrigger
impl PartialEq for CheckTrigger
impl StructuralPartialEq for CheckTrigger
Auto Trait Implementations§
impl Freeze for CheckTrigger
impl RefUnwindSafe for CheckTrigger
impl Send for CheckTrigger
impl Sync for CheckTrigger
impl Unpin for CheckTrigger
impl UnsafeUnpin for CheckTrigger
impl UnwindSafe for CheckTrigger
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,
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.