rust-aws-sns

Crates.iorust-aws-sns
lib.rsrust-aws-sns
version0.4.0
sourcesrc
created_at2021-02-01 07:39:22.083621
updated_at2021-02-01 08:08:12.834696
descriptionPackage sms provides a small wrapper around AWS SNS to make SMS usage more friendly.
homepage
repositoryhttps://github.com/SachinMaharana/rust-aws-sns
max_upload_size
id349170
size41,947
(SachinMaharana)

documentation

README

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

Commit count: 12

cargo fmt