Struct google_firestore1_beta1::Target [−][src]
pub struct Target { pub documents: Option<DocumentsTarget>, pub read_time: Option<String>, pub query: Option<QueryTarget>, pub resume_token: Option<String>, pub target_id: Option<i32>, pub once: Option<bool>, }
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.
read_time: Option<String>
Start listening after a specific read_time
.
The client must know the state of matching documents at this time.
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.
once: Option<bool>
If the target should be removed once it is current and consistent.
Trait Implementations
impl Default for Target
[src]
impl Default for Target
impl Clone for Target
[src]
impl Clone for Target
fn clone(&self) -> Target
[src]
fn clone(&self) -> Target
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Target
[src]
impl Debug for Target
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for Target
[src]
impl Part for Target