[][src]Struct dogear::ProblemCounts

pub struct ProblemCounts {
    pub orphans: usize,
    pub misparented_roots: usize,
    pub multiple_parents_by_children: usize,
    pub deleted_parent_guids: usize,
    pub missing_parent_guids: usize,
    pub non_folder_parent_guids: usize,
    pub parent_child_disagreements: usize,
    pub deleted_children: usize,
    pub missing_children: usize,
}

Records total problem counts for telemetry. An item can have multiple problems, but each problem is only counted once per item.

Fields

orphans: usize

Number of items that aren't mentioned in any parent's children and don't have a parentid. These are very rare; it's likely that a problem child has at least a parentid.

misparented_roots: usize

Number of roots that aren't children of the Places root.

multiple_parents_by_children: usize

Number of items with multiple, conflicting parents by_children.

deleted_parent_guids: usize

Number of items whose parentid is deleted.

missing_parent_guids: usize

Number of items whose parentid doesn't exist.

non_folder_parent_guids: usize

Number of items whose parentid isn't a folder.

parent_child_disagreements: usize

Number of items whose parentids disagree with their parents' children.

deleted_children: usize

Number of deleted items mentioned in all parents' children.

missing_children: usize

Number of nonexistent items mentioned in all parents' children.

Methods

impl ProblemCounts[src]

pub fn add(&self, other: ProblemCounts) -> ProblemCounts[src]

Adds two sets of counts together.

Trait Implementations

impl Clone for ProblemCounts[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for ProblemCounts[src]

impl PartialEq<ProblemCounts> for ProblemCounts[src]

impl Copy for ProblemCounts[src]

impl Eq for ProblemCounts[src]

impl Debug for ProblemCounts[src]

impl Hash for ProblemCounts[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]