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
attributes: Option<HashMap<String, String>>
Optional attributes for this message.
data: Option<String>
The message payload.
publish_time: Option<String>
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.
message_id: Option<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.
Trait Implementations
impl Default for PubsubMessage
[src]
fn default() -> PubsubMessage
Returns the "default value" for a type. Read more
impl Clone for PubsubMessage
[src]
fn clone(&self) -> PubsubMessage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more