[][src]Struct dogear::Item

pub struct Item {
    pub guid: Guid,
    pub kind: Kind,
    pub age: i64,
    pub needs_merge: bool,
    pub validity: Validity,
}

An item in a local or remote bookmark tree.

Fields

guid: Guidkind: Kindage: i64needs_merge: boolvalidity: Validity

Methods

impl Item[src]

pub fn new(guid: Guid, kind: Kind) -> Item[src]

Creates an item with the given kind.

pub fn is_folder(&self) -> bool[src]

Indicates if the item is a folder. Only folders are allowed to have children.

pub fn has_compatible_kind(&self, remote_node: &Item) -> bool[src]

Indicates if the item can be merged with another item. Only items with compatible kinds can be merged.

Trait Implementations

impl Eq for Item[src]

impl PartialEq<Item> for Item[src]

impl Debug for Item[src]

impl Display for Item[src]

Auto Trait Implementations

impl Send for Item

impl Sync for Item

Blanket Implementations

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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