Crates.io | abineo-messaging |
lib.rs | abineo-messaging |
version | 1.0.0 |
source | src |
created_at | 2023-07-25 06:51:56.842093 |
updated_at | 2023-07-25 06:51:56.842093 |
description | Shared structs and enums for internal messaging service. |
homepage | |
repository | |
max_upload_size | |
id | 925231 |
size | 6,489 |
Shared structs and enums for internal messaging service.
cargo add abineo-messaging
[dependencies]
abineo-messaging = "1"
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());