Add setters to EncryptedPassportElementPhoneNumber
@@ -751,6 +751,23 @@ pub struct EncryptedPassportElementPhoneNumber {
pub phone_number: String,
}
+impl EncryptedPassportElementPhoneNumber {
+ pub fn new<S>(phone_number: S) -> Self
+ where
+ S: Into<String>,
+ {
+ Self { phone_number: phone_number.into() }
+ }
+
+ pub fn phone_number<S>(mut self, val: S) -> Self
+ where
+ S: Into<String>,
+ {
+ self.phone_number = val.into();
+ self
+ }
+}
+
#[serde_with_macros::skip_serializing_none]
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
