mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-09 19:49:19 +01:00
Add setters to PassportElementErrorReverseSide
This commit is contained in:
parent
44ec6450cf
commit
9d0badedce
1 changed files with 22 additions and 0 deletions
|
@ -178,6 +178,28 @@ pub struct PassportElementErrorReverseSide {
|
||||||
pub file_hash: String,
|
pub file_hash: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl PassportElementErrorReverseSide {
|
||||||
|
pub fn new<S>(r#type: PassportElementErrorReverseSideType, file_hash: S) -> Self
|
||||||
|
where
|
||||||
|
S: Into<String>,
|
||||||
|
{
|
||||||
|
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<S>(mut self, val: S) -> Self
|
||||||
|
where
|
||||||
|
S: Into<String>,
|
||||||
|
{
|
||||||
|
self.file_hash = val.into();
|
||||||
|
self
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//// Represents an issue with the selfie with a document.
|
//// Represents an issue with the selfie with a document.
|
||||||
//
|
//
|
||||||
/// The error is considered resolved when the file with the selfie changes.
|
/// The error is considered resolved when the file with the selfie changes.
|
||||||
|
|
Loading…
Reference in a new issue