Struct offchain::types::KycDataObject[][src]

pub struct KycDataObject {
    pub kyc_data_type: KycDataObjectType,
    pub given_name: Option<String>,
    pub surname: Option<String>,
    pub address: Option<AddressObject>,
    pub dob: Option<String>,
    pub place_of_birth: Option<String>,
    pub national_id: Option<NationalIdObject>,
    pub legal_entity_name: Option<String>,
    // some fields omitted
}
Expand description

A KycDataObject represents the required information for a single subaddress. Proof of non-repudiation is provided by the signatures included in the JWS payloads. The only mandatory fields are payload_version and type. All other fields are optional from the point of view of the protocol – however they may need to be included for another VASP to be ready to settle the payment.

Fields

kyc_data_type: KycDataObjectTypegiven_name: Option<String>

Legal given name of the user for which this KYC data Object applies.

surname: Option<String>

Legal surname of the user for which this KYC data Object applies.

address: Option<AddressObject>

Physical address data for this account

dob: Option<String>

Date of birth for the holder of this account. Specified as an ISO 8601 calendar date format: https://en.wikipedia.org/wiki/ISO_8601

place_of_birth: Option<String>

Place of birth for this user. line1 and line2 fields should not be populated for this usage of the address Object

national_id: Option<NationalIdObject>

National ID information for the holder of this account

legal_entity_name: Option<String>

Name of the legal entity. Used when subaddress represents a legal entity rather than an individual. KYCDataObject should only include one of legal_entity_name OR given_name/surname

Implementations

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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

Performs the conversion.

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

Performs the conversion.

Should always be Self

Generates a hash used only for tests.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.