[−][src]Struct places::storage::bookmarks::conversions::BookmarkUpdateInfo
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: SyncGuid
title: 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]
self,
ty: BookmarkType
) -> Result<(SyncGuid, UpdatableItem)>
Convert the BookmarkUpdateInfo
into information for updating, (now that
we know it's node type).
Trait Implementations
impl Clone for BookmarkUpdateInfo
[src]
fn clone(&self) -> BookmarkUpdateInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BookmarkUpdateInfo
[src]
impl From<BookmarkNode> for BookmarkUpdateInfo
[src]
fn from(n: BookmarkNode) -> Self
[src]
impl PartialEq<BookmarkUpdateInfo> for BookmarkUpdateInfo
[src]
fn eq(&self, other: &BookmarkUpdateInfo) -> bool
[src]
fn ne(&self, other: &BookmarkUpdateInfo) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,