pub struct VerificationGate {
pub id: String,
pub name: String,
pub kind: VerificationGateKind,
pub requirement: VerificationGateRequirement,
pub status: VerificationGateStatus,
pub command: Option<VerificationCommand>,
pub result: Option<VerificationGateResult>,
pub artifacts: Vec<VerificationArtifactRef>,
pub source: VerificationGateSource,
pub reason: Option<String>,
}Fields§
§id: String§name: String§kind: VerificationGateKind§requirement: VerificationGateRequirement§status: VerificationGateStatus§command: Option<VerificationCommand>§result: Option<VerificationGateResult>§artifacts: Vec<VerificationArtifactRef>§source: VerificationGateSource§reason: Option<String>Implementations§
Source§impl VerificationGate
impl VerificationGate
pub fn command(id: impl Into<String>, command: impl Into<String>) -> Self
pub fn from_requirement( index: usize, requirement: &VerificationRequirement, ) -> Self
pub fn typed(id: impl Into<String>, kind: VerificationGateKind) -> Self
pub fn is_required(&self) -> bool
pub fn closeout_effect(&self) -> VerificationCloseoutEffect
pub fn mark_running(&mut self)
pub fn mark_passed(&mut self, result: VerificationGateResult)
pub fn mark_failed(&mut self, result: VerificationGateResult)
pub fn mark_skipped(&mut self, reason: impl Into<String>)
pub fn mark_blocked(&mut self, reason: impl Into<String>)
Trait Implementations§
Source§impl Clone for VerificationGate
impl Clone for VerificationGate
Source§fn clone(&self) -> VerificationGate
fn clone(&self) -> VerificationGate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VerificationGate
impl Debug for VerificationGate
Source§impl Default for VerificationGate
impl Default for VerificationGate
Source§impl<'de> Deserialize<'de> for VerificationGatewhere
VerificationGate: Default,
impl<'de> Deserialize<'de> for VerificationGatewhere
VerificationGate: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VerificationGate
impl PartialEq for VerificationGate
Source§fn eq(&self, other: &VerificationGate) -> bool
fn eq(&self, other: &VerificationGate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VerificationGate
impl Serialize for VerificationGate
impl Eq for VerificationGate
impl StructuralPartialEq for VerificationGate
Auto Trait Implementations§
impl Freeze for VerificationGate
impl RefUnwindSafe for VerificationGate
impl Send for VerificationGate
impl Sync for VerificationGate
impl Unpin for VerificationGate
impl UnsafeUnpin for VerificationGate
impl UnwindSafe for VerificationGate
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more