[][src]Enum dogear::Content

pub enum Content {
    Bookmark {
        title: String,
        url_href: String,
    },
    Folder {
        title: String,
    },
    Separator {
        position: i64,
    },
}

Content info for an item in the local or remote tree. This is used to dedupe new local items to remote items that don't exist locally, with different GUIDs and similar content.

  • Bookmarks must have the same title and URL.
  • Queries must have the same title and query URL.
  • Folders and livemarks must have the same title.
  • Separators must have the same position within their parents.

Variants

Bookmark

Fields of Bookmark

title: Stringurl_href: String
Folder

Fields of Folder

title: String
Separator

Fields of Separator

position: i64

Trait Implementations

impl Eq for Content[src]

impl PartialEq<Content> for Content[src]

impl Debug for Content[src]

impl Hash for Content[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

impl Send for Content

impl Sync for Content

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[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]