Struct gapi_grpc::google::firestore::v1::TargetChange [−][src]
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.
Implementations
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,