1 stable release
1.0.0 | Jul 25, 2023 |
---|
#214 in Email
6KB
133 lines
Abineo Messaging
Shared structs and enums for internal messaging service.
Installation
Using cargo
cargo add abineo-messaging
Add to Cargo.toml
[dependencies]
abineo-messaging = "1"
Usage
use abineo_messaging::*;
let result = Message::email_builder()
.subject("The Email")
.recipient("info@abineo.com")
.body(Content::builder()
.title("Hello, world!")
.subtitle("Lorem ipsum dolor")
.text("Now that we know who you are, I know who I am")
.secret("42"))
.build();
assert!(result.is_ok());
Dependencies
~0.4–1MB
~24K SLoC