pub enum Problem {
    Orphan,
    MisparentedRoot(Vec<DivergedParent>),
    DivergedParents(Vec<DivergedParent>),
    MissingChild {
        child_guid: Guid,
    },
    DeletedChild {
        child_guid: Guid,
    },
    InvalidItem,
}
Expand description

Describes a structure divergence for an item in a bookmark tree. These are used for logging and validation telemetry.

Variants

Orphan

The item doesn’t have a parentid, and isn’t mentioned in any folders.

MisparentedRoot(Vec<DivergedParent>)

The item is a user content root (menu, mobile, toolbar, or unfiled), but parent_guid isn’t the Places root.

DivergedParents(Vec<DivergedParent>)

The item has diverging parents. If the vector contains more than one DivergedParent::ByChildren, the item has multiple parents. If the vector contains a DivergedParent::ByParentGuid, with or without a DivergedParent::ByChildren, the item has a parent-child disagreement.

MissingChild

Fields

child_guid: Guid

The item is mentioned in a folder’s children, but doesn’t exist.

DeletedChild

Fields

child_guid: Guid

The item is mentioned in a folder’s children, but is deleted.

InvalidItem

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.