1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// SPDX-LICENSE-IDENTIFIER: MPL-2.0
/*
Email - omglol crate for Rust
Copyright © 2023 Gil Poiares-Oliveira <gil@poiares-oliveira.com>.
All rights reserved.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.
*/
//! Helper to format email addresses in the format that the API expects
use EmailAddress;
/// Format a `Vec<EmailAddress>` to a String in the JSON format the API expects
///
/// # Arguments
/// * `addresses` - A `Vec<EmailAddress>` containing the forwarding email address(es)
/// # Output
/// `String` in the JSON format the API endpoint expects