[][src]Struct places::storage::bookmarks::conversions::BookmarkUpdateInfo

pub(crate) struct BookmarkUpdateInfo {
    pub guid: SyncGuid,
    pub title: Option<String>,
    pub url: Option<String>,
    pub parent_guid: Option<SyncGuid>,
    pub position: Option<u32>,
}

We don't require bookmark type for updates on the other side of the FFI, since the type is immutable, and iOS wants to be able to move bookmarks by GUID. We also don't/can't enforce as much in the Kotlin/Swift type system as we can/do in Rust.

This is a type that represents the data we get from the FFI, which we then turn into a UpdatableItem that we can actually use (we do this by reading the type out of the DB, but we can do that transactionally, so it's not a problem).

It's basically an intermediate between the protobuf message format and UpdatableItem, used to avoid needing to pass in the type to update, and to give us a place to check things that we can't enforce in Swift/Kotlin's type system, but that we do in Rust's.

Fields

guid: SyncGuidtitle: Option<String>url: Option<String>parent_guid: Option<SyncGuid>position: Option<u32>

Implementations

impl BookmarkUpdateInfo[src]

pub fn into_updatable(
    self,
    ty: BookmarkType
) -> Result<(SyncGuid, UpdatableItem)>
[src]

Convert the BookmarkUpdateInfo into information for updating, (now that we know it's node type).

Trait Implementations

impl Clone for BookmarkUpdateInfo[src]

impl Debug for BookmarkUpdateInfo[src]

impl From<BookmarkNode> for BookmarkUpdateInfo[src]

impl PartialEq<BookmarkUpdateInfo> for BookmarkUpdateInfo[src]

impl StructuralPartialEq for BookmarkUpdateInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for BookmarkUpdateInfo

impl Send for BookmarkUpdateInfo

impl Sync for BookmarkUpdateInfo

impl Unpin for BookmarkUpdateInfo

impl UnwindSafe for BookmarkUpdateInfo

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,