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]
impl Default for PubsubMessage
fn default() -> PubsubMessage
[src]
fn default() -> PubsubMessage
Returns the "default value" for a type. Read more
impl Clone for PubsubMessage
[src]
impl Clone for PubsubMessage
fn clone(&self) -> PubsubMessage
[src]
fn clone(&self) -> PubsubMessage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for PubsubMessage
[src]
impl Debug for PubsubMessage
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for PubsubMessage
[src]
impl Part for PubsubMessage
Auto Trait Implementations
impl Send for PubsubMessage
impl Send for PubsubMessage
impl Sync for PubsubMessage
impl Sync for PubsubMessage