mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Fix src/types/passport_element_error.rs
This commit is contained in:
parent
824ad20ee9
commit
a505cd72c1
1 changed files with 8 additions and 8 deletions
|
@ -292,11 +292,11 @@ pub struct PassportElementErrorFiles {
|
|||
}
|
||||
|
||||
impl PassportElementErrorFiles {
|
||||
pub fn new<S>(r#type: PassportElementErrorFilesType, file_hash: S) -> Self
|
||||
pub fn new<S>(r#type: PassportElementErrorFilesType, file_hashes: S) -> Self
|
||||
where
|
||||
S: Into<String>,
|
||||
S: Into<Vec<String>>,
|
||||
{
|
||||
Self { r#type, file_hashes: file_hash.into() }
|
||||
Self { r#type, file_hashes: file_hashes.into() }
|
||||
}
|
||||
|
||||
pub fn r#type(mut self, val: PassportElementErrorFilesType) -> Self {
|
||||
|
@ -306,7 +306,7 @@ impl PassportElementErrorFiles {
|
|||
|
||||
pub fn file_hashes<S>(mut self, val: S) -> Self
|
||||
where
|
||||
S: Into<String>,
|
||||
S: Into<Vec<String>>,
|
||||
{
|
||||
self.file_hashes = val.into();
|
||||
self
|
||||
|
@ -369,11 +369,11 @@ pub struct PassportElementErrorTranslationFiles {
|
|||
}
|
||||
|
||||
impl PassportElementErrorTranslationFiles {
|
||||
pub fn new<S>(r#type: PassportElementErrorTranslationFilesType, file_hash: S) -> Self
|
||||
pub fn new<S>(r#type: PassportElementErrorTranslationFilesType, file_hashes: S) -> Self
|
||||
where
|
||||
S: Into<String>,
|
||||
S: Into<Vec<String>>,
|
||||
{
|
||||
Self { r#type, file_hashes: file_hash.into() }
|
||||
Self { r#type, file_hashes: file_hashes.into() }
|
||||
}
|
||||
|
||||
pub fn r#type(mut self, val: PassportElementErrorTranslationFilesType) -> Self {
|
||||
|
@ -383,7 +383,7 @@ impl PassportElementErrorTranslationFiles {
|
|||
|
||||
pub fn file_hashes<S>(mut self, val: S) -> Self
|
||||
where
|
||||
S: Into<String>,
|
||||
S: Into<Vec<String>>,
|
||||
{
|
||||
self.file_hashes = val.into();
|
||||
self
|
||||
|
|
Loading…
Add table
Reference in a new issue