#messaging #structs #internal #shared #service #abineo

abineo-messaging

Shared structs and enums for internal messaging service

1 stable release

1.0.0 Jul 25, 2023

#173 in Email

ISC license

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.5–1MB
~25K SLoC