pub struct AssetPricing {
pub asset: String,
pub amount: String,
pub expires: Option<String>,
}Expand description
Pricing object for supported assets (TAIP-14).
Specifies a specific amount of an asset or currency needed to settle a payment, with an optional expiration timestamp for the exchange rate.
Fields§
§asset: StringAsset identifier (CAIP-19, DTI, or ISO 4217 currency code).
amount: StringDecimal string of the amount needed.
expires: Option<String>ISO 8601 timestamp when this rate expires (optional).
Trait Implementations§
Source§impl Clone for AssetPricing
impl Clone for AssetPricing
Source§fn clone(&self) -> AssetPricing
fn clone(&self) -> AssetPricing
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 AssetPricing
impl Debug for AssetPricing
Source§impl<'de> Deserialize<'de> for AssetPricing
impl<'de> Deserialize<'de> for AssetPricing
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
Auto Trait Implementations§
impl Freeze for AssetPricing
impl RefUnwindSafe for AssetPricing
impl Send for AssetPricing
impl Sync for AssetPricing
impl Unpin for AssetPricing
impl UnsafeUnpin for AssetPricing
impl UnwindSafe for AssetPricing
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