pub struct AwsConfig {
pub queue_url: Option<String>,
pub topic_arn: Option<String>,
pub region: Option<String>,
pub endpoint_url: Option<String>,
pub access_key: Option<String>,
pub secret_key: Option<String>,
pub session_token: Option<String>,
pub max_messages: Option<i32>,
pub wait_time_seconds: Option<i32>,
}Fields§
§queue_url: Option<String>The SQS queue URL. Required for Consumer. Optional for Publisher if topic_arn is set.
topic_arn: Option<String>(Publisher only) The SNS topic ARN.
region: Option<String>AWS Region (e.g., “us-east-1”).
endpoint_url: Option<String>Custom endpoint URL (e.g., for LocalStack).
access_key: Option<String>AWS Access Key ID.
secret_key: Option<String>AWS Secret Access Key.
session_token: Option<String>AWS Session Token.
max_messages: Option<i32>(Consumer only) Maximum number of messages to receive in a batch (1-10).
wait_time_seconds: Option<i32>(Consumer only) Wait time for long polling in seconds (0-20).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AwsConfig
impl<'de> Deserialize<'de> for AwsConfig
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
Auto Trait Implementations§
impl Freeze for AwsConfig
impl RefUnwindSafe for AwsConfig
impl Send for AwsConfig
impl Sync for AwsConfig
impl Unpin for AwsConfig
impl UnwindSafe for AwsConfig
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