#[non_exhaustive]
pub enum Kind {
Show 13 variants PersonalDetails(String), Passport { data: String, front_side: File, selfie: File, translation: Vec<File>, }, DriverLicense { data: String, front_side: File, reverse_side: File, selfie: File, translation: Vec<File>, }, IdentityCard { data: String, front_side: File, reverse_side: File, selfie: File, translation: Vec<File>, }, InternalPassport { data: String, front_side: File, selfie: File, translation: Vec<File>, }, Address(String), UtilityBill { files: Vec<File>, translation: Vec<File>, }, BankStatement { files: Vec<File>, translation: Vec<File>, }, RentalAgreement { files: Vec<File>, translation: Vec<File>, }, PassportRegistration { files: Vec<File>, translation: Vec<File>, }, TemporaryRegistration { files: Vec<File>, translation: Vec<File>, }, PhoneNumber(String), Email(String),
}
Expand description

Represents different kinds of Element.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

PersonalDetails(String)

The user’s personal details.

§

Passport

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§data: String

Data related to the passport.

§front_side: File

The front size of the passport.

§selfie: File

The user’s selfie with the passport.

§translation: Vec<File>

Translated versions of the passport.

The user’s passport.

§

DriverLicense

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§data: String

Data related to the license.

§front_side: File

The front side of the license.

§reverse_side: File

The reverse side of the license.

§selfie: File

The user’s selfie with the license.

§translation: Vec<File>

Translated versions of the license.

The user’s driver license.

§

IdentityCard

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§data: String

Data related to the identity card.

§front_side: File

The front side of the identity card.

§reverse_side: File

The reverse side of the identity card.

§selfie: File

The user’s selfie with the license.

§translation: Vec<File>

Translated versions of the identity card.

The user’s identity card.

§

InternalPassport

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§data: String

Data related to the passport.

§front_side: File

The front side of the passport.

§selfie: File

The user’s selfie with the passport.

§translation: Vec<File>

Translated versions of the passport.

The user’s internal passport.

§

Address(String)

The user’s address.

§

UtilityBill

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§files: Vec<File>

Photos of the bill.

§translation: Vec<File>

Translated versions of the bill.

The user’s utility bill.

§

BankStatement

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§files: Vec<File>

Photos of the statement.

§translation: Vec<File>

Translated versions of the statement.

The user’s bank statement.

§

RentalAgreement

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§files: Vec<File>

Photos of the agreement.

§translation: Vec<File>

Translated versions of the agreement.

The user’s rental agreement.

§

PassportRegistration

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§files: Vec<File>

Photos of the registration.

§translation: Vec<File>

Translated versions of the registration.

The user’s passport registration.

§

TemporaryRegistration

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§files: Vec<File>

Photos of the registration.

§translation: Vec<File>

Translated versions of the registration.

The user’s temporary registration.

§

PhoneNumber(String)

The user’s phone number.

§

Email(String)

The user’s email.

Implementations§

Returns true if self is of variant PersonalDetails.

Unwraps the value, yielding the content of PersonalDetails.

Panics

Panics if the value is not PersonalDetails, with a panic message including the content of self.

Returns Some if self is of variant PersonalDetails, and None otherwise.

Returns true if self is of variant Passport.

Returns true if self is of variant DriverLicense.

Returns true if self is of variant IdentityCard.

Returns true if self is of variant InternalPassport.

Returns true if self is of variant Address.

Unwraps the value, yielding the content of Address.

Panics

Panics if the value is not Address, with a panic message including the content of self.

Returns Some if self is of variant Address, and None otherwise.

Returns true if self is of variant UtilityBill.

Returns true if self is of variant BankStatement.

Returns true if self is of variant RentalAgreement.

Returns true if self is of variant PassportRegistration.

Returns true if self is of variant TemporaryRegistration.

Returns true if self is of variant PhoneNumber.

Unwraps the value, yielding the content of PhoneNumber.

Panics

Panics if the value is not PhoneNumber, with a panic message including the content of self.

Returns Some if self is of variant PhoneNumber, and None otherwise.

Returns true if self is of variant Email.

Unwraps the value, yielding the content of Email.

Panics

Panics if the value is not Email, with a panic message including the content of self.

Returns Some if self is of variant Email, and None otherwise.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more