Struct gapi_grpc::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,
}

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

impl Change[src]

pub fn state(&self) -> State[src]

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

pub fn set_state(&mut self, value: State)[src]

Sets state to the provided enum value.

Trait Implementations

impl Clone for Change[src]

impl Debug for Change[src]

impl Default for Change[src]

impl Message for Change[src]

impl PartialEq<Change> for Change[src]

impl StructuralPartialEq for Change[src]

Auto Trait Implementations

impl RefUnwindSafe for Change

impl Send for Change

impl Sync for Change

impl Unpin for Change

impl UnwindSafe for Change

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> 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]