[][src]Struct google_firestore1_beta1::Target

pub struct Target {
    pub documents: Option<DocumentsTarget>,
    pub once: Option<bool>,
    pub query: Option<QueryTarget>,
    pub resume_token: Option<String>,
    pub target_id: Option<i32>,
    pub read_time: Option<String>,
}

A specification of a set of documents to listen to.

This type is not used in any activity, and only used as part of another schema.

Fields

documents: Option<DocumentsTarget>

A target specified by a set of document names.

once: Option<bool>

If the target should be removed once it is current and consistent.

query: Option<QueryTarget>

A target specified by a query.

resume_token: Option<String>

A resume token from a prior TargetChange for an identical target.

Using a resume token with a different target is unsupported and may fail.

target_id: Option<i32>

A client provided target ID.

If not set, the server will assign an ID for the target.

Used for resuming a target without changing IDs. The IDs can either be client-assigned or be server-assigned in a previous stream. All targets with client provided IDs must be added before adding a target that needs a server-assigned id.

read_time: Option<String>

Start listening after a specific read_time.

The client must know the state of matching documents at this time.

Trait Implementations

impl Part for Target[src]

impl Default for Target[src]

impl Clone for Target[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Target[src]

impl Serialize for Target[src]

impl<'de> Deserialize<'de> for Target[src]

Auto Trait Implementations

impl Send for Target

impl Unpin for Target

impl Sync for Target

impl UnwindSafe for Target

impl RefUnwindSafe for Target

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]