pub enum SpendAsset {
Xch,
Dig,
Cat {
asset_id: String,
},
}Expand description
Which asset an automated spend moved.
Externally tagged on asset so a CAT carries its asset id in the same object rather than in a
sibling field that could go missing: {"asset":"xch"}, {"asset":"dig"},
{"asset":"cat","asset_id":"…"}. An amount is never readable without its asset, so the two
travel together.
Variants§
Trait Implementations§
Source§impl Clone for SpendAsset
impl Clone for SpendAsset
Source§fn clone(&self) -> SpendAsset
fn clone(&self) -> SpendAsset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpendAsset
impl Debug for SpendAsset
Source§impl<'de> Deserialize<'de> for SpendAsset
impl<'de> Deserialize<'de> for SpendAsset
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
impl Eq for SpendAsset
Source§impl PartialEq for SpendAsset
impl PartialEq for SpendAsset
Source§impl Serialize for SpendAsset
impl Serialize for SpendAsset
impl StructuralPartialEq for SpendAsset
Auto Trait Implementations§
impl Freeze for SpendAsset
impl RefUnwindSafe for SpendAsset
impl Send for SpendAsset
impl Sync for SpendAsset
impl Unpin for SpendAsset
impl UnsafeUnpin for SpendAsset
impl UnwindSafe for SpendAsset
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