Struct google_pubsub1::api::ReceivedMessage
source · pub struct ReceivedMessage {
pub ack_id: Option<String>,
pub delivery_attempt: Option<i32>,
pub message: Option<PubsubMessage>,
}
Expand description
A message and its corresponding acknowledgment ID.
This type is not used in any activity, and only used as part of another schema.
Fields§
§ack_id: Option<String>
Optional. This ID can be used to acknowledge the received message.
delivery_attempt: Option<i32>
Optional. The approximate number of times that 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.
message: Option<PubsubMessage>
Optional. The message.
Trait Implementations§
source§impl Clone for ReceivedMessage
impl Clone for ReceivedMessage
source§fn clone(&self) -> ReceivedMessage
fn clone(&self) -> ReceivedMessage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more