[][src]Struct sync15::CollectionRequest

pub struct CollectionRequest {
    pub collection: Cow<'static, str>,
    pub full: bool,
    pub ids: Option<Vec<Guid>>,
    pub limit: usize,
    pub older: Option<ServerTimestamp>,
    pub newer: Option<ServerTimestamp>,
    pub order: Option<RequestOrder>,
    pub commit: bool,
    pub batch: Option<String>,
}

Fields

collection: Cow<'static, str>full: boolids: Option<Vec<Guid>>limit: usizeolder: Option<ServerTimestamp>newer: Option<ServerTimestamp>order: Option<RequestOrder>commit: boolbatch: Option<String>

Implementations

impl CollectionRequest[src]

pub fn new<S>(collection: S) -> CollectionRequest where
    S: Into<Cow<'static, str>>, 
[src]

pub fn ids<V>(self, v: V) -> CollectionRequest where
    V: IntoIterator,
    <V as IntoIterator>::Item: Into<Guid>, 
[src]

pub fn full(self) -> CollectionRequest[src]

pub fn older_than(self, ts: ServerTimestamp) -> CollectionRequest[src]

pub fn newer_than(self, ts: ServerTimestamp) -> CollectionRequest[src]

pub fn sort_by(self, order: RequestOrder) -> CollectionRequest[src]

pub fn limit(self, num: usize) -> CollectionRequest[src]

pub fn batch(self, batch: Option<String>) -> CollectionRequest[src]

pub fn commit(self, v: bool) -> CollectionRequest[src]

pub fn build_url(&self, base_url: Url) -> Result<Url, UnacceptableBaseUrl>[src]

Trait Implementations

impl Clone for CollectionRequest[src]

impl Debug for CollectionRequest[src]

impl PartialEq<CollectionRequest> for CollectionRequest[src]

impl StructuralPartialEq for CollectionRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for CollectionRequest

impl Send for CollectionRequest

impl Sync for CollectionRequest

impl Unpin for CollectionRequest

impl UnwindSafe for CollectionRequest

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