diff --git a/src/types/passport_element_error.rs b/src/types/passport_element_error.rs index fd78ea3f..9b12d461 100644 --- a/src/types/passport_element_error.rs +++ b/src/types/passport_element_error.rs @@ -178,6 +178,28 @@ pub struct PassportElementErrorReverseSide { pub file_hash: String, } +impl PassportElementErrorReverseSide { + pub fn new(r#type: PassportElementErrorReverseSideType, file_hash: S) -> Self + where + S: Into, + { + Self { r#type, file_hash: file_hash.into() } + } + + pub fn r#type(mut self, val: PassportElementErrorReverseSideType) -> Self { + self.r#type = val; + self + } + + pub fn file_hash(mut self, val: S) -> Self + where + S: Into, + { + self.file_hash = val.into(); + self + } +} + //// Represents an issue with the selfie with a document. // /// The error is considered resolved when the file with the selfie changes.