pub struct TransactionValue {
pub amount: String,
pub currency: String,
}Expand description
Fiat equivalent value for compliance purposes (TAIP-3).
Used for Travel Rule threshold determination when the virtual asset is not widely traded and its fiat value cannot be easily resolved.
Fields§
§amount: StringDecimal string representation of the fiat amount.
currency: StringISO 4217 3-letter currency code (e.g., “USD”, “EUR”).
Trait Implementations§
Source§impl Clone for TransactionValue
impl Clone for TransactionValue
Source§fn clone(&self) -> TransactionValue
fn clone(&self) -> TransactionValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionValue
impl Debug for TransactionValue
Source§impl<'de> Deserialize<'de> for TransactionValue
impl<'de> Deserialize<'de> for TransactionValue
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 PartialEq for TransactionValue
impl PartialEq for TransactionValue
Source§impl Serialize for TransactionValue
impl Serialize for TransactionValue
impl StructuralPartialEq for TransactionValue
Auto Trait Implementations§
impl Freeze for TransactionValue
impl RefUnwindSafe for TransactionValue
impl Send for TransactionValue
impl Sync for TransactionValue
impl Unpin for TransactionValue
impl UnsafeUnpin for TransactionValue
impl UnwindSafe for TransactionValue
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