pub enum Asset {
Native,
Credit(CreditAsset),
}
Expand description
Enum representing an asset.
Variants§
Native
The native asset (XLM).
Credit(CreditAsset)
A non-native asset, identified by asset code/issuer id.
Implementations§
Trait Implementations§
impl Eq for Asset
impl StructuralPartialEq for Asset
Auto Trait Implementations§
impl Freeze for Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnwindSafe for Asset
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