pub struct DetectorCoverageV1 {
pub kind: CoverageKindV1,
pub bytes_total: u64,
pub bytes_inspected: u64,
pub chunks_total: u32,
pub chunks_inspected: u32,
pub reason: Option<ReasonCodeV1>,
}Expand description
What a detector actually looked at. A result never implies more coverage than recorded here.
Fields§
§kind: CoverageKindV1§bytes_total: u64§bytes_inspected: u64§chunks_total: u32§chunks_inspected: u32§reason: Option<ReasonCodeV1>Implementations§
Source§impl DetectorCoverageV1
impl DetectorCoverageV1
pub fn validate(&self) -> Result<(), ValidationError>
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
True only when the detector inspected the whole object.
Trait Implementations§
Source§impl Clone for DetectorCoverageV1
impl Clone for DetectorCoverageV1
Source§impl Debug for DetectorCoverageV1
impl Debug for DetectorCoverageV1
Source§impl<'de> Deserialize<'de> for DetectorCoverageV1
impl<'de> Deserialize<'de> for DetectorCoverageV1
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DetectorCoverageV1
Source§impl PartialEq for DetectorCoverageV1
impl PartialEq for DetectorCoverageV1
Source§impl Serialize for DetectorCoverageV1
impl Serialize for DetectorCoverageV1
impl StructuralPartialEq for DetectorCoverageV1
Auto Trait Implementations§
impl Freeze for DetectorCoverageV1
impl RefUnwindSafe for DetectorCoverageV1
impl Send for DetectorCoverageV1
impl Sync for DetectorCoverageV1
impl Unpin for DetectorCoverageV1
impl UnsafeUnpin for DetectorCoverageV1
impl UnwindSafe for DetectorCoverageV1
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