pub struct Baseline {
pub name: String,
pub line_pct: f64,
pub function_pct: f64,
pub region_pct: f64,
}Expand description
Persisted coverage baseline for a single subject.
§Example
use dev_coverage::Baseline;
let b = Baseline {
name: "my-crate".into(),
line_pct: 87.5,
function_pct: 90.0,
region_pct: 80.0,
};
assert_eq!(b.name, "my-crate");Fields§
§name: StringSubject name. Matches the name on the CoverageResult this
baseline was derived from.
line_pct: f64Line coverage percentage at baseline time.
function_pct: f64Function coverage percentage at baseline time.
region_pct: f64Region coverage percentage at baseline time.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Baseline
impl<'de> Deserialize<'de> for Baseline
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 StructuralPartialEq for Baseline
Auto Trait Implementations§
impl Freeze for Baseline
impl RefUnwindSafe for Baseline
impl Send for Baseline
impl Sync for Baseline
impl Unpin for Baseline
impl UnsafeUnpin for Baseline
impl UnwindSafe for Baseline
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