4 releases (breaking)
0.4.0 | Feb 1, 2021 |
---|---|
0.3.0 | Feb 1, 2021 |
0.2.0 | Feb 1, 2021 |
0.1.0 | Feb 1, 2021 |
#7 in #sns
25 downloads per month
Used in rust-aws-sns
12KB
87 lines
rust-aws-sns
crate rust-aws-sns provides a small wrapper around AWS SNS to make SMS usage more friendly.
Example Usage
use rust_aws_sns::{SmsType, SMS};
#[tokio::main]
async fn main() {
let s = SMS {
// ..Default::default() can also pass default values
sms_type: SmsType::Transactional,
sender_id: "".into(),
max_price: 0.01,
};
let res = s.send("hello".into(), "91xxxxxx153x".into()).await;
match res {
Ok(r) => println!("{:?}", r),
Err(e) => println!("{}", e),
}
}
Licence MIT
Dependencies
~11–21MB
~295K SLoC