pub struct TravelRule {
pub attest_verified_wallet_ownership: Option<bool>,
pub beneficiary: Option<TravelRuleBeneficiary>,
pub is_intermediary: Option<IsIntermediary>,
pub is_self: Option<bool>,
pub originator: Option<TravelRuleOriginator>,
}Expand description
Required Travel Rule fields differ by region. These requirements are determined based on which Coinbase entity the customer has signed the service agreement for.
JSON schema
{
"description": "Required Travel Rule fields differ by region. These requirements are determined based on which Coinbase entity the customer has signed the service agreement for.",
"examples": [
{
"attestVerifiedWalletOwnership": true,
"beneficiary": {
"address": {
"city": "Paris",
"countryCode": "FR",
"line1": "456 Oak Ave",
"postCode": "75001"
},
"name": "Jane Smith",
"walletType": "custodial"
},
"isIntermediary": true,
"isSelf": false,
"originator": {
"address": {
"city": "San Francisco",
"countryCode": "US",
"line1": "123 Main St",
"line2": "Unit 201",
"postCode": "94105",
"state": "California"
},
"dateOfBirth": {
"day": "15",
"month": "08",
"year": "1990"
},
"financialInstitution": "PayPal, Inc.",
"name": "John Doe",
"personalId": "123-45-6789",
"virtualAssetServiceProvider": {
"address": {
"city": "San Francisco",
"countryCode": "US",
"line1": "123 Market St",
"line2": "Suite 400",
"postCode": "94105",
"state": "California"
},
"identifier": "5493001KJTIIGC8Y1R17",
"name": "Fidelity Digital Asset Services, LLC"
}
}
}
],
"type": "object",
"properties": {
"attestVerifiedWalletOwnership": {
"description": "When `true`, you attest that the beneficiary's wallet ownership has been verified out-of-band. Instructs Coinbase to skip the wallet verification check for this transfer.\n\n**Only valid when `isIntermediary` is `true`.** You can only attest to the beneficiary's wallet ownership when your organization is acting as the originating VASP on behalf of your end customer, and Coinbase is acting as the intermediary VASP. Returns a `400` error if set to `true` when `isIntermediary` is `false` or omitted.",
"examples": [
true
],
"type": "boolean"
},
"beneficiary": {
"$ref": "#/components/schemas/TravelRuleBeneficiary"
},
"isIntermediary": {
"$ref": "#/components/schemas/IsIntermediary"
},
"isSelf": {
"description": "Indicates whether the user attests that the receiving wallet belongs to them.",
"examples": [
true
],
"type": "boolean"
},
"originator": {
"$ref": "#/components/schemas/TravelRuleOriginator"
}
}
}Fields§
§attest_verified_wallet_ownership: Option<bool>When true, you attest that the beneficiary’s wallet ownership has been verified out-of-band. Instructs Coinbase to skip the wallet verification check for this transfer.
Only valid when isIntermediary is true.* You can only attest to the beneficiary’s wallet ownership when your organization is acting as the originating VASP on behalf of your end customer, and Coinbase is acting as the intermediary VASP. Returns a 400 error if set to true when isIntermediary is false or omitted.
beneficiary: Option<TravelRuleBeneficiary>§is_intermediary: Option<IsIntermediary>§is_self: Option<bool>Indicates whether the user attests that the receiving wallet belongs to them.
originator: Option<TravelRuleOriginator>Implementations§
Source§impl TravelRule
impl TravelRule
pub fn builder() -> TravelRule
Trait Implementations§
Source§impl Clone for TravelRule
impl Clone for TravelRule
Source§impl Debug for TravelRule
impl Debug for TravelRule
Source§impl Default for TravelRule
impl Default for TravelRule
Source§impl<'de> Deserialize<'de> for TravelRule
impl<'de> Deserialize<'de> for TravelRule
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<&TravelRule> for TravelRule
impl From<&TravelRule> for TravelRule
Source§fn from(value: &TravelRule) -> Self
fn from(value: &TravelRule) -> Self
Converts to this type from the input type.
Source§impl From<TravelRule> for TravelRule
impl From<TravelRule> for TravelRule
Source§fn from(value: TravelRule) -> Self
fn from(value: TravelRule) -> Self
Converts to this type from the input type.
Source§impl Serialize for TravelRule
impl Serialize for TravelRule
Source§impl TryFrom<TravelRule> for TravelRule
impl TryFrom<TravelRule> for TravelRule
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TravelRule) -> Result<Self, ConversionError>
fn try_from(value: TravelRule) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TravelRule
impl RefUnwindSafe for TravelRule
impl Send for TravelRule
impl Sync for TravelRule
impl Unpin for TravelRule
impl UnsafeUnpin for TravelRule
impl UnwindSafe for TravelRule
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