Struct googapis::google::watcher::v1::Change [−][src]
pub struct Change {
pub element: String,
pub state: i32,
pub data: Option<Any>,
pub resume_marker: Vec<u8>,
pub continued: bool,
}
Expand description
A Change indicates the most recent state of an element.
Fields
element: String
Name of the element, interpreted relative to the entity’s actual name. “” refers to the entity itself. The element name is a valid UTF-8 string.
state: i32
The state of the element
.
data: Option<Any>
The actual change data. This field is present only when state() == EXISTS
or state() == ERROR
. Please see
[google.protobuf.Any][google.protobuf.Any] about how to use the Any type.
resume_marker: Vec<u8>
If present, provides a compact representation of all the messages that have been received by the caller for the given entity, e.g., it could be a sequence number or a multi-part timestamp/version vector. This marker can be provided in the Request message, allowing the caller to resume the stream watching at a specific point without fetching the initial state.
continued: bool
If true, this Change is followed by more Changes that are in the same group as this Change.
Implementations
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Change
impl UnwindSafe for Change
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more