diff --git a/src/types/encrypted_passport_element.rs b/src/types/encrypted_passport_element.rs index 31a8eb1e..bbf30f91 100644 --- a/src/types/encrypted_passport_element.rs +++ b/src/types/encrypted_passport_element.rs @@ -717,6 +717,31 @@ pub struct EncryptedPassportElementTemporaryRegistration { pub translation: Option>, } +impl EncryptedPassportElementTemporaryRegistration { + 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]