Struct google_firestore1_beta1::api::TargetChange[][src]

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

Targets being watched have changed.

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

Fields

cause: Option<Status>

The error that resulted in this change, if applicable.

read_time: Option<String>

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.

resume_token: Option<String>

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.

target_change_type: Option<String>

The type of change that occurred.

target_ids: Option<Vec<i32>>

The target IDs of targets that have changed. If empty, the change applies to all targets. The order of the target IDs is not defined.

Trait Implementations

impl Clone for TargetChange[src]

impl Debug for TargetChange[src]

impl Default for TargetChange[src]

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

impl Part for TargetChange[src]

impl Serialize for TargetChange[src]

Auto Trait Implementations

impl RefUnwindSafe for TargetChange[src]

impl Send for TargetChange[src]

impl Sync for TargetChange[src]

impl Unpin for TargetChange[src]

impl UnwindSafe for TargetChange[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument 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.