[][src]Struct gcp_client::google::pubsub::v1::ReceivedMessage

pub struct ReceivedMessage {
    pub ack_id: String,
    pub message: Option<PubsubMessage>,
    pub delivery_attempt: i32,
}

A message and its corresponding acknowledgment ID.

Fields

ack_id: String

This ID can be used to acknowledge the received message.

message: Option<PubsubMessage>

The message.

delivery_attempt: i32

The approximate number of times that Cloud Pub/Sub has attempted to deliver the associated message to a subscriber.

More precisely, this is 1 + (number of NACKs) + (number of ack_deadline exceeds) for this message.

A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline exceeds event is whenever a message is not acknowledged within ack_deadline. Note that ack_deadline is initially Subscription.ackDeadlineSeconds, but may get extended automatically by the client library.

Upon the first delivery of a given message, delivery_attempt will have a value of 1. The value is calculated at best effort and is approximate.

If a DeadLetterPolicy is not set on the subscription, this will be 0.

Trait Implementations

impl Clone for ReceivedMessage[src]

impl Debug for ReceivedMessage[src]

impl Default for ReceivedMessage[src]

impl Message for ReceivedMessage[src]

impl PartialEq<ReceivedMessage> for ReceivedMessage[src]

impl StructuralPartialEq for ReceivedMessage[src]

Auto Trait Implementations

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, 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>, 

impl<T> WithSubscriber for T[src]