Struct gapi_grpc::google::cloud::pubsublite::v1::PubSubMessage[][src]

pub struct PubSubMessage {
    pub key: Vec<u8>,
    pub data: Vec<u8>,
    pub attributes: HashMap<String, AttributeValues>,
    pub event_time: Option<Timestamp>,
}

A message that is published by publishers and delivered to subscribers.

Fields

key: Vec<u8>

The key used for routing messages to partitions or for compaction (e.g., keep the last N messages per key). If the key is empty, the message is routed to an arbitrary partition.

data: Vec<u8>

The payload of the message.

attributes: HashMap<String, AttributeValues>

Optional attributes that can be used for message metadata/headers.

event_time: Option<Timestamp>

An optional, user-specified event time.

Trait Implementations

impl Clone for PubSubMessage[src]

impl Debug for PubSubMessage[src]

impl Default for PubSubMessage[src]

impl Message for PubSubMessage[src]

impl PartialEq<PubSubMessage> for PubSubMessage[src]

impl StructuralPartialEq for PubSubMessage[src]

Auto Trait Implementations

impl RefUnwindSafe for PubSubMessage

impl Send for PubSubMessage

impl Sync for PubSubMessage

impl Unpin for PubSubMessage

impl UnwindSafe for PubSubMessage

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]