pub struct SqsConfig {
pub auth: Option<AwsConfig>,
pub queue_url: String,
pub poll_secs: u64,
pub max_number_of_messages: i32,
pub visibility_timeout_secs: Option<i32>,
pub client_concurrency: usize,
pub connect_timeout_seconds: Option<u64>,
pub read_timeout_seconds: Option<u64>,
pub operation_timeout_seconds: Option<u64>,
pub delete_message: bool,
pub delete_failed_message: bool,
pub deferred: Option<DeferredConfig>,
}Expand description
Amazon SQS (Simple Queue Service) source configuration.
Fields§
§auth: Option<AwsConfig>AWS authentication and region settings.
queue_url: StringSQS queue URL to consume from.
poll_secs: u64Polling interval in seconds.
max_number_of_messages: i32Maximum number of messages per poll request.
visibility_timeout_secs: Option<i32>Visibility timeout in seconds for received messages.
client_concurrency: usizeNumber of concurrent SQS client workers.
connect_timeout_seconds: Option<u64>Connection timeout in seconds.
read_timeout_seconds: Option<u64>Read timeout in seconds.
operation_timeout_seconds: Option<u64>Operation timeout in seconds.
delete_message: boolWhether to delete messages after successful processing.
delete_failed_message: boolWhether to delete messages that failed processing.
deferred: Option<DeferredConfig>Deferred message configuration.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SqsConfig
impl<'de> Deserialize<'de> for SqsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HasFieldsMetadata for SqsConfig
impl HasFieldsMetadata for SqsConfig
Source§fn fields_metadata() -> Vec<FieldMetadata>
fn fields_metadata() -> Vec<FieldMetadata>
Returns a list of metadata for all fields in the struct.
Source§impl SourceConfig for SqsConfig
impl SourceConfig for SqsConfig
impl StructuralPartialEq for SqsConfig
Auto Trait Implementations§
impl Freeze for SqsConfig
impl RefUnwindSafe for SqsConfig
impl Send for SqsConfig
impl Sync for SqsConfig
impl Unpin for SqsConfig
impl UnsafeUnpin for SqsConfig
impl UnwindSafe for SqsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.