ocm_types/
invite.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
4#[serde(rename_all = "camelCase")]
5pub struct AcceptedInvite {
6    /// FQDN of the receiver OCM service.
7    ///
8    /// example: receiver.org
9    pub recipient_provider: String,
10    /// Token received in the invite
11    ///
12    /// example: xyz
13    pub token: String,
14    /// Unique ID to identify the Invite Receiver at their OCM Server.
15    ///
16    /// example: 51dc30ddc473d43a6011e9ebba6ca770
17    pub user_id: String,
18    /// Email address of the Invite Receiver.
19    /// example: richard@gmail.com
20    pub email: String,
21    /// Name of the Invite Receiver.
22    /// example: Richard Feynman
23    pub name: String,
24}
25
26#[derive(Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
27#[serde(rename_all = "camelCase")]
28pub struct AcceptedInviteResponse {
29    /// Unique ID to identify the Invite Sender at their OCM Server.
30    /// example: 9302
31    pub user_id: String,
32    /// Email ID of the Invite Sender.
33    /// example: john@sender.org
34    pub email: String,
35    /// Name of the Invite Sender.
36    /// example: John Doe
37    pub name: String,
38}