From b3c89af68c5818144d80f6dcb20923c7e3a50a41 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Mon, 27 Jul 2020 16:59:32 +0600 Subject: [PATCH] Add setters to EncryptedPassportElementUtilityBill --- src/types/encrypted_passport_element.rs | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/types/encrypted_passport_element.rs b/src/types/encrypted_passport_element.rs index 166d1945..e67ed406 100644 --- a/src/types/encrypted_passport_element.rs +++ b/src/types/encrypted_passport_element.rs @@ -440,6 +440,7 @@ impl EncryptedPassportElementInternalPassport { self.selfie = val; self } + pub fn translation

(mut self, val: P) -> Self where P: Into>, @@ -508,6 +509,31 @@ pub struct EncryptedPassportElementUtilityBill { pub translation: Option>, } +impl EncryptedPassportElementUtilityBill { + pub fn new(files: F) -> Self + where + F: Into>, + { + Self { files: files.into(), translation: None } + } + + pub fn files

(mut self, val: P) -> Self + where + P: Into>, + { + self.files = val.into(); + self + } + + pub fn translation

(mut self, val: P) -> Self + where + P: Into>, + { + self.translation = Some(val.into()); + self + } +} + #[serde_with_macros::skip_serializing_none] #[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)] #[non_exhaustive]