paypal_rust/resources/email.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, Deserialize, Serialize)]
4pub struct Email {
5 /// Up to 64 characters are allowed before and 255 characters are allowed
6 /// after the @ sign. However, the generally accepted maximum length for an
7 /// email address is 254 characters. The pattern verifies that an unquoted
8 /// @ sign exists.
9 pub value: String,
10
11 /// Indicates whether the email address is the user's primary address.
12 pub primary: bool,
13}