Struct google_pubsub1::PubsubMessage[][src]

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

A message data and its attributes. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute.

This type is not used in any activity, and only used as part of another schema.

Fields

Optional attributes for this message.

The message payload.

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.

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.

Trait Implementations

impl Default for PubsubMessage
[src]

Returns the "default value" for a type. Read more

impl Clone for PubsubMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PubsubMessage
[src]

Formats the value using the given formatter. Read more

impl Part for PubsubMessage
[src]

Auto Trait Implementations