pub struct TargetChange {
pub cause: Option<Status>,
pub read_time: Option<DateTime<Utc>>,
pub resume_token: Option<Vec<u8>>,
pub target_change_type: Option<String>,
pub target_ids: Option<Vec<i32>>,
}
Expand description
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<DateTime<Utc>>
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<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.
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§
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§fn default() -> TargetChange
fn default() -> TargetChange
Source§impl<'de> Deserialize<'de> for TargetChange
impl<'de> Deserialize<'de> for TargetChange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for TargetChange
impl Serialize for TargetChange
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more