Struct google_api_proto::google::firestore::v1beta1::TargetChange
source · pub struct TargetChange {
pub target_change_type: i32,
pub target_ids: Vec<i32>,
pub cause: Option<Status>,
pub resume_token: Bytes,
pub read_time: Option<Timestamp>,
}
Expand description
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: Bytes
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§
source§impl TargetChange
impl TargetChange
sourcepub fn target_change_type(&self) -> TargetChangeType
pub fn target_change_type(&self) -> TargetChangeType
Returns the enum value of target_change_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_target_change_type(&mut self, value: TargetChangeType)
pub fn set_target_change_type(&mut self, value: TargetChangeType)
Sets target_change_type
to the provided enum value.
Trait Implementations§
source§impl Clone for TargetChange
impl Clone for TargetChange
source§fn clone(&self) -> TargetChange
fn clone(&self) -> TargetChange
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TargetChange
impl Debug for TargetChange
source§impl Default for TargetChange
impl Default for TargetChange
source§impl Message for TargetChange
impl Message for TargetChange
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for TargetChange
impl PartialEq for TargetChange
source§fn eq(&self, other: &TargetChange) -> bool
fn eq(&self, other: &TargetChange) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetChange
Auto Trait Implementations§
impl !Freeze for TargetChange
impl RefUnwindSafe for TargetChange
impl Send for TargetChange
impl Sync for TargetChange
impl Unpin for TargetChange
impl UnwindSafe for TargetChange
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request