pub struct EncryptedPassportElementBankStatement {
pub files: Vec<PassportFile>,
pub hash: String,
pub translation: Option<Vec<PassportFile>>,
}Expand description
Represents a bank statement.
Fields§
§files: Vec<PassportFile>An array of encrypted files with documents provided by a user.
Files can be decrypted and verified
using the accompanying EncryptedCredentials.
hash: StringA base64-encoded element hash for
using in crate::types::PassportElementError::unspecified.
translation: Option<Vec<PassportFile>>An array of encrypted files with translated versions of documents provided by a user.
Files can be decrypted and verified
using the accompanying EncryptedCredentials.
Implementations§
Source§impl EncryptedPassportElementBankStatement
impl EncryptedPassportElementBankStatement
Sourcepub fn new<A, B>(files: A, hash: B) -> Self
pub fn new<A, B>(files: A, hash: B) -> Self
Creates a new EncryptedPassportElementBankStatement.
§Arguments
files- An array of encrypted files with documents.hash- An element hash.
Sourcepub fn with_translation<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = PassportFile>,
pub fn with_translation<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = PassportFile>,
Sets a new translation.
§Arguments
value- An array of encrypted files with translated versions of documents.
Trait Implementations§
Source§impl Clone for EncryptedPassportElementBankStatement
impl Clone for EncryptedPassportElementBankStatement
Source§fn clone(&self) -> EncryptedPassportElementBankStatement
fn clone(&self) -> EncryptedPassportElementBankStatement
Returns a duplicate 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 EncryptedPassportElementBankStatement
impl<'de> Deserialize<'de> for EncryptedPassportElementBankStatement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EncryptedPassportElementBankStatement> for EncryptedPassportElement
impl From<EncryptedPassportElementBankStatement> for EncryptedPassportElement
Source§fn from(value: EncryptedPassportElementBankStatement) -> Self
fn from(value: EncryptedPassportElementBankStatement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EncryptedPassportElementBankStatement
impl PartialEq for EncryptedPassportElementBankStatement
Source§fn eq(&self, other: &EncryptedPassportElementBankStatement) -> bool
fn eq(&self, other: &EncryptedPassportElementBankStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EncryptedPassportElementBankStatement
impl PartialOrd for EncryptedPassportElementBankStatement
impl StructuralPartialEq for EncryptedPassportElementBankStatement
Auto Trait Implementations§
impl Freeze for EncryptedPassportElementBankStatement
impl RefUnwindSafe for EncryptedPassportElementBankStatement
impl Send for EncryptedPassportElementBankStatement
impl Sync for EncryptedPassportElementBankStatement
impl Unpin for EncryptedPassportElementBankStatement
impl UnwindSafe for EncryptedPassportElementBankStatement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more