pub enum DeploymentObservation {
NoRef,
Published {
commit: String,
at: String,
source: Option<String>,
},
}Expand description
The newest commit of the deployment ref, and the source commit it says it was built from.
use majordomus_cli::environment::preflight::{derive, DeploymentObservation, Observations, Verdict};
let mut o = Observations::empty("demo", 0);
o.deployment = DeploymentObservation::Published { commit: "d".into(), at: "t".into(), source: None };
// a deployment that does not name its source proves nothing about any commit
assert_eq!(derive(&o).check("verification.deployment").unwrap().verdict, Verdict::Unknown);Variants§
NoRef
The ref is not in this clone.
Published
The newest deployment commit, and the source commit it names.
Trait Implementations§
Source§impl Clone for DeploymentObservation
impl Clone for DeploymentObservation
Source§fn clone(&self) -> DeploymentObservation
fn clone(&self) -> DeploymentObservation
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 DeploymentObservation
impl Debug for DeploymentObservation
Source§impl Default for DeploymentObservation
impl Default for DeploymentObservation
Source§fn default() -> DeploymentObservation
fn default() -> DeploymentObservation
Returns the “default value” for a type. Read more
impl Eq for DeploymentObservation
Source§impl PartialEq for DeploymentObservation
impl PartialEq for DeploymentObservation
Source§fn eq(&self, other: &DeploymentObservation) -> bool
fn eq(&self, other: &DeploymentObservation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeploymentObservation
Auto Trait Implementations§
impl Freeze for DeploymentObservation
impl RefUnwindSafe for DeploymentObservation
impl Send for DeploymentObservation
impl Sync for DeploymentObservation
impl Unpin for DeploymentObservation
impl UnsafeUnpin for DeploymentObservation
impl UnwindSafe for DeploymentObservation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.