pub struct WorkflowFingerprint(/* private fields */);Expand description
A validated lowercase SHA-256 digest of the exact generated workflow bytes.
Implementations§
Source§impl WorkflowFingerprint
impl WorkflowFingerprint
Sourcepub fn new(value: impl Into<String>) -> Result<Self, GithubProviderConfigError>
pub fn new(value: impl Into<String>) -> Result<Self, GithubProviderConfigError>
Validate a lowercase 64-character SHA-256 digest.
§Errors
Rejects uppercase, abbreviated, or non-hexadecimal values.
Sourcepub fn for_workflow(workflow: &GeneratedWorkflow) -> Self
pub fn for_workflow(workflow: &GeneratedWorkflow) -> Self
Compute the fingerprint for one generated workflow.
Trait Implementations§
Source§impl Clone for WorkflowFingerprint
impl Clone for WorkflowFingerprint
Source§impl Debug for WorkflowFingerprint
impl Debug for WorkflowFingerprint
impl Eq for WorkflowFingerprint
Source§impl Ord for WorkflowFingerprint
impl Ord for WorkflowFingerprint
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WorkflowFingerprint
impl PartialEq for WorkflowFingerprint
Source§impl PartialOrd for WorkflowFingerprint
impl PartialOrd for WorkflowFingerprint
impl StructuralPartialEq for WorkflowFingerprint
Auto Trait Implementations§
impl Freeze for WorkflowFingerprint
impl RefUnwindSafe for WorkflowFingerprint
impl Send for WorkflowFingerprint
impl Sync for WorkflowFingerprint
impl Unpin for WorkflowFingerprint
impl UnsafeUnpin for WorkflowFingerprint
impl UnwindSafe for WorkflowFingerprint
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.