[][src]Struct firestore_grpc_cloudrun::TargetChange

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

Targets being watched have changed.

Fields

target_change_type: i32

The type of change that occurred.

target_ids: 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.

cause: Option<Status>

The error that resulted in this change, if applicable.

resume_token: Vec<u8>

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.

read_time: Option<Timestamp>

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.

Methods

impl TargetChange[src]

pub fn target_change_type(&self) -> TargetChangeType[src]

Returns the enum value of target_change_type, or the default if the field is set to an invalid enum value.

pub fn set_target_change_type(&mut self, value: TargetChangeType)[src]

Sets target_change_type to the provided enum value.

Trait Implementations

impl Clone for TargetChange[src]

impl Debug for TargetChange[src]

impl Default for TargetChange[src]

impl Message for TargetChange[src]

impl PartialEq<TargetChange> for TargetChange[src]

impl StructuralPartialEq for TargetChange[src]

Auto Trait Implementations

impl RefUnwindSafe for TargetChange

impl Send for TargetChange

impl Sync for TargetChange

impl Unpin for TargetChange

impl UnwindSafe for TargetChange

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> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for 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>, 
[src]

impl<T> WithSubscriber for T[src]