pub struct RunTrigger {
pub event: String,
pub head_branch: Option<String>,
pub head_repository: Option<String>,
pub head_sha: String,
}Expand description
What started a workflow run, as GET /repos/{owner}/{repo}/actions/runs/{id} says.
Fields§
§event: Stringpush, pull_request, schedule, workflow_dispatch, ….
head_branch: Option<String>The branch it ran on: a pull request’s head branch, which may be a fork’s.
head_repository: Option<String>owner/name of the repository its commit came from: a fork’s, for a pull request from one.
head_sha: StringThe commit it ran. A tag’s run gives the tag’s name as head_branch, so only this says whether the
branch has it.
Trait Implementations§
Source§impl Clone for RunTrigger
impl Clone for RunTrigger
Source§impl Debug for RunTrigger
impl Debug for RunTrigger
impl Eq for RunTrigger
Source§impl PartialEq for RunTrigger
impl PartialEq for RunTrigger
impl StructuralPartialEq for RunTrigger
Auto Trait Implementations§
impl Freeze for RunTrigger
impl RefUnwindSafe for RunTrigger
impl Send for RunTrigger
impl Sync for RunTrigger
impl Unpin for RunTrigger
impl UnsafeUnpin for RunTrigger
impl UnwindSafe for RunTrigger
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
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
Compare self to
key and return true if they are equal.