Struct gapi_grpc::google::pubsub::v1::PubsubMessage[][src]

pub struct PubsubMessage {
    pub data: Vec<u8>,
    pub attributes: HashMap<String, String>,
    pub message_id: String,
    pub publish_time: Option<Timestamp>,
    pub ordering_key: String,
}

A message that is published by publishers and consumed by subscribers. The message must contain either a non-empty data field or at least one attribute. Note that client libraries represent this object differently depending on the language. See the corresponding client library documentation for more information. See [quotas and limits] (https://cloud.google.com/pubsub/quotas) for more information about message limits.

Fields

data: Vec<u8>

The message data field. If this field is empty, the message must contain at least one attribute.

attributes: HashMap<String, String>

Attributes for this message. If this field is empty, the message must contain non-empty data. This can be used to filter messages on the subscription.

message_id: String

ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a PubsubMessage via a Pull call or a push delivery. It must not be populated by the publisher in a Publish call.

publish_time: Option<Timestamp>

The time at which the message was published, populated by the server when it receives the Publish call. It must not be populated by the publisher in a Publish call.

ordering_key: String

If non-empty, identifies related messages for which publish order should be respected. If a Subscription has enable_message_ordering set to true, messages published with the same non-empty ordering_key value will be delivered to subscribers in the order in which they are received by the Pub/Sub system. All PubsubMessages published in a given PublishRequest must specify the same ordering_key value.

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]