pub struct WorkflowDispatchRequest { /* private fields */ }Expand description
Validated public inputs for one no-secret workflow dispatch.
Implementations§
Source§impl WorkflowDispatchRequest
impl WorkflowDispatchRequest
Sourcepub fn new(
repository: Repository,
workflow: WorkflowRegistration,
temporary_ref: TemporaryGitRef,
operation_id: impl Into<String>,
request_sha256: impl Into<String>,
source_revision: CommitSha,
dispatch_revision: CommitSha,
) -> Result<Self, TransportConfigError>
pub fn new( repository: Repository, workflow: WorkflowRegistration, temporary_ref: TemporaryGitRef, operation_id: impl Into<String>, request_sha256: impl Into<String>, source_revision: CommitSha, dispatch_revision: CommitSha, ) -> Result<Self, TransportConfigError>
Bind one exact temporary ref and complete public dispatch input set.
§Errors
Rejects an unsafe operation identifier, a non-lowercase SHA-256, an operation/ref mismatch, or an unexpectedly large serialized body.
Sourcepub const fn repository(&self) -> &Repository
pub const fn repository(&self) -> &Repository
Exact target repository.
Sourcepub const fn workflow(&self) -> &WorkflowRegistration
pub const fn workflow(&self) -> &WorkflowRegistration
Active workflow selected before dispatch.
Sourcepub const fn temporary_ref(&self) -> &TemporaryGitRef
pub const fn temporary_ref(&self) -> &TemporaryGitRef
Exact temporary branch passed as the dispatch ref.
Sourcepub fn operation_id(&self) -> &str
pub fn operation_id(&self) -> &str
Provider operation identifier.
Sourcepub fn request_sha256(&self) -> &str
pub fn request_sha256(&self) -> &str
Canonical complete request digest.
Sourcepub const fn source_revision(&self) -> &CommitSha
pub const fn source_revision(&self) -> &CommitSha
Exact trusted source commit.
Sourcepub const fn dispatch_revision(&self) -> &CommitSha
pub const fn dispatch_revision(&self) -> &CommitSha
Exact temporary-ref commit expected as GITHUB_SHA.
Sourcepub fn body_sha256(&self) -> &str
pub fn body_sha256(&self) -> &str
SHA-256 of the canonical no-secret dispatch body and its complete input set.
Trait Implementations§
Source§impl Clone for WorkflowDispatchRequest
impl Clone for WorkflowDispatchRequest
Source§impl Debug for WorkflowDispatchRequest
impl Debug for WorkflowDispatchRequest
impl Eq for WorkflowDispatchRequest
Source§impl PartialEq for WorkflowDispatchRequest
impl PartialEq for WorkflowDispatchRequest
impl StructuralPartialEq for WorkflowDispatchRequest
Auto Trait Implementations§
impl Freeze for WorkflowDispatchRequest
impl RefUnwindSafe for WorkflowDispatchRequest
impl Send for WorkflowDispatchRequest
impl Sync for WorkflowDispatchRequest
impl Unpin for WorkflowDispatchRequest
impl UnsafeUnpin for WorkflowDispatchRequest
impl UnwindSafe for WorkflowDispatchRequest
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.