[][src]Struct rusoto_sqs::ReceiveMessageRequest

pub struct ReceiveMessageRequest {
    pub attribute_names: Option<Vec<String>>,
    pub max_number_of_messages: Option<i64>,
    pub message_attribute_names: Option<Vec<String>>,
    pub queue_url: String,
    pub receive_request_attempt_id: Option<String>,
    pub visibility_timeout: Option<i64>,
    pub wait_time_seconds: Option<i64>,
}

Fields

attribute_names: Option<Vec<String>>

A list of s that need to be returned along with each message. These attributes include:

max_number_of_messages: Option<i64>

The maximum number of messages to return. Amazon SQS never returns more messages than this value (however, fewer messages might be returned). Valid values: 1 to 10. Default: 1.

message_attribute_names: Option<Vec<String>>

The name of the message attribute, where N is the index.

When using ReceiveMessage, you can send a list of attribute names to receive, or you can return all of the attributes by specifying All or .* in your request. You can also use all message attributes starting with a prefix, for example bar.*.

queue_url: String

The URL of the Amazon SQS queue from which messages are received.

Queue URLs and names are case-sensitive.

receive_request_attempt_id: Option<String>

This parameter applies only to FIFO (first-in-first-out) queues.

The token used for deduplication of ReceiveMessage calls. If a networking issue occurs after a ReceiveMessage action, and instead of a response you receive a generic error, you can retry the same action with an identical ReceiveRequestAttemptId to retrieve the same set of messages, even if their visibility timeout has not yet expired.

The length of ReceiveRequestAttemptId is 128 characters. ReceiveRequestAttemptId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~).

For best practices of using ReceiveRequestAttemptId, see Using the ReceiveRequestAttemptId Request Parameter in the Amazon Simple Queue Service Developer Guide.

visibility_timeout: Option<i64>

The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request.

wait_time_seconds: Option<i64>

The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. If a message is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list of messages.

Trait Implementations

impl PartialEq<ReceiveMessageRequest> for ReceiveMessageRequest[src]

impl Default for ReceiveMessageRequest[src]

impl Clone for ReceiveMessageRequest[src]

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

Performs copy-assignment from source. Read more

impl Debug for ReceiveMessageRequest[src]

Auto Trait Implementations

impl Send for ReceiveMessageRequest

impl Sync for ReceiveMessageRequest

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self