[][src]Struct sync15::changeset::CollectionUpdate

pub struct CollectionUpdate<'a> {
    client: &'a Sync15StorageClient,
    state: &'a CollState,
    collection: Cow<'static, str>,
    xius: ServerTimestamp,
    to_update: Vec<EncryptedBso>,
    fully_atomic: bool,
}

Fields

client: &'a Sync15StorageClientstate: &'a CollStatecollection: Cow<'static, str>xius: ServerTimestampto_update: Vec<EncryptedBso>fully_atomic: bool

Implementations

impl<'a> CollectionUpdate<'a>[src]

pub fn new(
    client: &'a Sync15StorageClient,
    state: &'a CollState,
    collection: Cow<'static, str>,
    xius: ServerTimestamp,
    records: Vec<EncryptedBso>,
    fully_atomic: bool
) -> CollectionUpdate<'a>
[src]

pub fn new_from_changeset(
    client: &'a Sync15StorageClient,
    state: &'a CollState,
    changeset: OutgoingChangeset,
    fully_atomic: bool
) -> Result<CollectionUpdate<'a>>
[src]

pub fn upload(self) -> Result<UploadInfo>[src]

Returns a list of the IDs that failed if allowed_dropped_records is true, otherwise returns an empty vec.

Trait Implementations

impl<'a> Clone for CollectionUpdate<'a>[src]

impl<'a> Debug for CollectionUpdate<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for CollectionUpdate<'a>

impl<'a> !Send for CollectionUpdate<'a>

impl<'a> !Sync for CollectionUpdate<'a>

impl<'a> Unpin for CollectionUpdate<'a>

impl<'a> !UnwindSafe for CollectionUpdate<'a>

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>,