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
impl Eq for Problem
impl StructuralEq for Problem
impl StructuralPartialEq for Problem
Auto Trait Implementations
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnwindSafe for Problem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more