pub struct UpdateInAddressBookRequest {Show 14 fields
pub currency: String,
pub address_type: AddressBookType,
pub address: String,
pub label: String,
pub agreed: bool,
pub personal: bool,
pub beneficiary_vasp_name: String,
pub beneficiary_vasp_did: String,
pub beneficiary_address: String,
pub beneficiary_vasp_website: Option<String>,
pub beneficiary_first_name: Option<String>,
pub beneficiary_last_name: Option<String>,
pub beneficiary_company_name: Option<String>,
pub tag: Option<String>,
}Expand description
Request parameters for updating an address in the address book.
Used with the /private/update_in_address_book endpoint.
This endpoint allows providing beneficiary information for travel rule compliance.
Fields§
§currency: StringCurrency symbol (e.g., “BTC”, “ETH”, “USDC”)
address_type: AddressBookTypeAddress book entry type
address: StringAddress in proper format for the currency
label: StringUser-defined label for the address
agreed: boolWhether the user agrees to share information with third parties
personal: boolWhether the address belongs to the user (personal/un-hosted wallet)
beneficiary_vasp_name: StringName of the beneficiary VASP (Virtual Asset Service Provider)
beneficiary_vasp_did: StringDID (Decentralized Identifier) of the beneficiary VASP
beneficiary_address: StringGeographical address of the beneficiary
beneficiary_vasp_website: Option<String>Website of the beneficiary VASP (required if VASP not in known list)
beneficiary_first_name: Option<String>First name of the beneficiary (if a person)
beneficiary_last_name: Option<String>Last name of the beneficiary (if a person)
beneficiary_company_name: Option<String>Company name of the beneficiary (if a company)
tag: Option<String>Tag for XRP addresses (destination tag)
Implementations§
Source§impl UpdateInAddressBookRequest
impl UpdateInAddressBookRequest
Sourcepub fn new(
currency: String,
address_type: AddressBookType,
address: String,
label: String,
agreed: bool,
personal: bool,
beneficiary_vasp_name: String,
beneficiary_vasp_did: String,
beneficiary_address: String,
) -> Self
pub fn new( currency: String, address_type: AddressBookType, address: String, label: String, agreed: bool, personal: bool, beneficiary_vasp_name: String, beneficiary_vasp_did: String, beneficiary_address: String, ) -> Self
Creates a new request to update an address in the address book.
§Arguments
currency- Currency symbol (e.g., “BTC”, “ETH”)address_type- Type of address book entryaddress- The cryptocurrency addresslabel- User-defined label for the addressagreed- Whether user agrees to share info with third partiespersonal- Whether the address belongs to the userbeneficiary_vasp_name- Name of the beneficiary VASPbeneficiary_vasp_did- DID of the beneficiary VASPbeneficiary_address- Geographical address of the beneficiary
Sourcepub fn with_beneficiary_vasp_website(self, website: String) -> Self
pub fn with_beneficiary_vasp_website(self, website: String) -> Self
Sets the beneficiary VASP website.
Sourcepub fn with_beneficiary_first_name(self, first_name: String) -> Self
pub fn with_beneficiary_first_name(self, first_name: String) -> Self
Sets the beneficiary first name.
Sourcepub fn with_beneficiary_last_name(self, last_name: String) -> Self
pub fn with_beneficiary_last_name(self, last_name: String) -> Self
Sets the beneficiary last name.
Sourcepub fn with_beneficiary_company_name(self, company_name: String) -> Self
pub fn with_beneficiary_company_name(self, company_name: String) -> Self
Sets the beneficiary company name.
Trait Implementations§
Source§impl Clone for UpdateInAddressBookRequest
impl Clone for UpdateInAddressBookRequest
Source§fn clone(&self) -> UpdateInAddressBookRequest
fn clone(&self) -> UpdateInAddressBookRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more