pub struct FigureDelta {
pub figure: FigureKind,
pub this: Option<u64>,
pub baseline: Option<u64>,
pub sampled: bool,
}Expand description
One figure of this job beside the baseline’s.
Fields§
§figure: FigureKindWhat it measures.
this: Option<u64>This job’s; None where unknown.
baseline: Option<u64>The baseline’s; None where unknown, or without a baseline.
sampled: boolWhether both come from samples taken every few seconds, so a short peak between two is missed.
Implementations§
Source§impl FigureDelta
impl FigureDelta
Sourcepub fn this_words(&self) -> String
pub fn this_words(&self) -> String
This job’s figure with its unit, or unknown.
Sourcepub fn baseline_words(&self) -> String
pub fn baseline_words(&self) -> String
The baseline’s figure with its unit, or unknown.
Sourcepub fn change(&self) -> ChangeKind
pub fn change(&self) -> ChangeKind
Which way it went.
Sourcepub fn change_words(&self) -> String
pub fn change_words(&self) -> String
The change in words: +1m 5s (+12%), -300M (-8%), same, or unknown.
Trait Implementations§
Source§impl Clone for FigureDelta
impl Clone for FigureDelta
impl Copy for FigureDelta
Source§impl Debug for FigureDelta
impl Debug for FigureDelta
Source§impl<'de> Deserialize<'de> for FigureDelta
impl<'de> Deserialize<'de> for FigureDelta
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
impl Eq for FigureDelta
Source§impl PartialEq for FigureDelta
impl PartialEq for FigureDelta
Source§impl Serialize for FigureDelta
impl Serialize for FigureDelta
impl StructuralPartialEq for FigureDelta
Auto Trait Implementations§
impl Forget for FigureDelta
impl Freeze for FigureDelta
impl Move for FigureDelta
impl RefUnwindSafe for FigureDelta
impl Send for FigureDelta
impl Sync for FigureDelta
impl Unpin for FigureDelta
impl UnsafeUnpin for FigureDelta
impl UnwindSafe for FigureDelta
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.