Struct frankenstein::objects::EncryptedPassportElement
source · [−]pub struct EncryptedPassportElement {
pub type_field: EncryptedPassportElementType,
pub data: Option<String>,
pub phone_number: Option<String>,
pub email: Option<String>,
pub files: Option<Vec<PassportFile>>,
pub front_side: Option<PassportFile>,
pub reverse_side: Option<PassportFile>,
pub selfie: Option<PassportFile>,
pub translation: Option<Vec<PassportFile>>,
pub hash: String,
}
Fields
type_field: EncryptedPassportElementType
data: Option<String>
phone_number: Option<String>
email: Option<String>
files: Option<Vec<PassportFile>>
front_side: Option<PassportFile>
reverse_side: Option<PassportFile>
selfie: Option<PassportFile>
translation: Option<Vec<PassportFile>>
hash: String
Implementations
sourceimpl EncryptedPassportElement
impl EncryptedPassportElement
sourcepub fn builder(
) -> EncryptedPassportElementBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> EncryptedPassportElementBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building EncryptedPassportElement
.
On the builder, call .type_field(...)
, .data(...)
(optional), .phone_number(...)
(optional), .email(...)
(optional), .files(...)
(optional), .front_side(...)
(optional), .reverse_side(...)
(optional), .selfie(...)
(optional), .translation(...)
(optional), .hash(...)
to set the values of the fields.
Finally, call .build()
to create the instance of EncryptedPassportElement
.
Trait Implementations
sourceimpl Clone for EncryptedPassportElement
impl Clone for EncryptedPassportElement
sourcefn clone(&self) -> EncryptedPassportElement
fn clone(&self) -> EncryptedPassportElement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EncryptedPassportElement
impl Debug for EncryptedPassportElement
sourceimpl<'de> Deserialize<'de> for EncryptedPassportElement
impl<'de> Deserialize<'de> for EncryptedPassportElement
sourcefn 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
sourceimpl PartialEq<EncryptedPassportElement> for EncryptedPassportElement
impl PartialEq<EncryptedPassportElement> for EncryptedPassportElement
sourcefn eq(&self, other: &EncryptedPassportElement) -> bool
fn eq(&self, other: &EncryptedPassportElement) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EncryptedPassportElement) -> bool
fn ne(&self, other: &EncryptedPassportElement) -> bool
This method tests for !=
.
sourceimpl Serialize for EncryptedPassportElement
impl Serialize for EncryptedPassportElement
impl StructuralPartialEq for EncryptedPassportElement
Auto Trait Implementations
impl RefUnwindSafe for EncryptedPassportElement
impl Send for EncryptedPassportElement
impl Sync for EncryptedPassportElement
impl Unpin for EncryptedPassportElement
impl UnwindSafe for EncryptedPassportElement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more