pub struct Comparison {
pub containment: Containment,
pub changed: Option<BTreeSet<String>>,
}Expand description
What git says about one evidence commit against the presented revision: whether the revision contains it, and what changed between them.
use majordomus_cli::evidence::freshness::Comparison;
use majordomus_cli::git::Containment;
// git could not be asked: the truth table reads this as `stale`, never as unchanged
let unknown = Comparison { containment: Containment::CommitUnknown, changed: None };
assert!(unknown.changed.is_none());Fields§
§containment: ContainmentWhether the presented revision contains the evidence commit.
changed: Option<BTreeSet<String>>The paths that differ between the two, or None when git could not answer.
Trait Implementations§
Source§impl Clone for Comparison
impl Clone for Comparison
Source§fn clone(&self) -> Comparison
fn clone(&self) -> Comparison
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 Comparison
impl Debug for Comparison
impl Eq for Comparison
Source§impl PartialEq for Comparison
impl PartialEq for Comparison
Source§fn eq(&self, other: &Comparison) -> bool
fn eq(&self, other: &Comparison) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Comparison
Auto Trait Implementations§
impl Freeze for Comparison
impl RefUnwindSafe for Comparison
impl Send for Comparison
impl Sync for Comparison
impl Unpin for Comparison
impl UnsafeUnpin for Comparison
impl UnwindSafe for Comparison
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.