[][src]Struct google_pubsub1::PubsubMessage

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 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 for more information about message limits.

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 data field. If this field is empty, the message must contain at least one attribute.

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 Part for PubsubMessage[src]

impl Default for PubsubMessage[src]

impl Clone for PubsubMessage[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for PubsubMessage[src]

impl Serialize for PubsubMessage[src]

impl<'de> Deserialize<'de> for PubsubMessage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]