pub struct PassportElementErrorTranslationFiles {
pub type: PassportElementErrorTranslationFilesType,
pub file_hashes: Vec<String, Global>,
}
Expand description
Represents an issue with the translated version of a document.
The error is considered resolved when a file with the document translation change.
Fields§
§type: PassportElementErrorTranslationFilesType
Type of element of the user’s Telegram Passport which has the issue
file_hashes: Vec<String, Global>
List of base64-encoded file hashes
Implementations§
source§impl PassportElementErrorTranslationFiles
impl PassportElementErrorTranslationFiles
pub fn new<S>(
type: PassportElementErrorTranslationFilesType,
file_hashes: S
) -> PassportElementErrorTranslationFileswhere
S: IntoIterator<Item = String>,
pub fn type(
self,
val: PassportElementErrorTranslationFilesType
) -> PassportElementErrorTranslationFiles
pub fn file_hashes<S>(self, val: S) -> PassportElementErrorTranslationFileswhere
S: IntoIterator<Item = String>,
Trait Implementations§
source§impl Clone for PassportElementErrorTranslationFiles
impl Clone for PassportElementErrorTranslationFiles
source§fn clone(&self) -> PassportElementErrorTranslationFiles
fn clone(&self) -> PassportElementErrorTranslationFiles
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for PassportElementErrorTranslationFiles
impl<'de> Deserialize<'de> for PassportElementErrorTranslationFiles
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<PassportElementErrorTranslationFiles, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PassportElementErrorTranslationFiles, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<PassportElementErrorTranslationFiles> for PassportElementErrorTranslationFiles
impl PartialEq<PassportElementErrorTranslationFiles> for PassportElementErrorTranslationFiles
source§fn eq(&self, other: &PassportElementErrorTranslationFiles) -> bool
fn eq(&self, other: &PassportElementErrorTranslationFiles) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PassportElementErrorTranslationFiles
impl Serialize for PassportElementErrorTranslationFiles
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for PassportElementErrorTranslationFiles
impl StructuralEq for PassportElementErrorTranslationFiles
impl StructuralPartialEq for PassportElementErrorTranslationFiles
Auto Trait Implementations§
impl RefUnwindSafe for PassportElementErrorTranslationFiles
impl Send for PassportElementErrorTranslationFiles
impl Sync for PassportElementErrorTranslationFiles
impl Unpin for PassportElementErrorTranslationFiles
impl UnwindSafe for PassportElementErrorTranslationFiles
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.