Struct google_firestore1_beta1::TargetChange[][src]

pub struct TargetChange {
    pub target_change_type: Option<String>,
    pub resume_token: Option<String>,
    pub cause: Option<Status>,
    pub target_ids: Option<Vec<i32>>,
    pub read_time: Option<String>,
}

Targets being watched have changed.

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

Fields

The type of change that occurred.

A token that can be used to resume the stream for the given target_ids, or all targets if target_ids is empty.

Not set on every target change.

The error that resulted in this change, if applicable.

The target IDs of targets that have changed.

If empty, the change applies to all targets.

For target_change_type=ADD, the order of the target IDs matches the order of the requests to add the targets. This allows clients to unambiguously associate server-assigned target IDs with added targets.

For other states, the order of the target IDs is not defined.

The consistent read_time for the given target_ids (omitted when the target_ids are not at a consistent snapshot).

The stream is guaranteed to send a read_time with target_ids empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot (while NO_CHANGE and REMOVE messages are not).

For a given stream, read_time is guaranteed to be monotonically increasing.

Trait Implementations

impl Default for TargetChange
[src]

Returns the "default value" for a type. Read more

impl Clone for TargetChange
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TargetChange
[src]

Formats the value using the given formatter. Read more

impl Part for TargetChange
[src]

Auto Trait Implementations