#[repr(i32)]pub enum AssetType {
Native = 0,
CreditAlphanum4 = 1,
CreditAlphanum12 = 2,
PoolShare = 3,
}Expand description
AssetType is an XDR Enum defines as:
enum AssetType
{
ASSET_TYPE_NATIVE = 0,
ASSET_TYPE_CREDIT_ALPHANUM4 = 1,
ASSET_TYPE_CREDIT_ALPHANUM12 = 2,
ASSET_TYPE_POOL_SHARE = 3
};Variants§
Implementations§
Trait Implementations§
Source§impl Discriminant<AssetType> for Asset
impl Discriminant<AssetType> for Asset
fn discriminant(&self) -> AssetType
Source§impl Discriminant<AssetType> for AssetCode
impl Discriminant<AssetType> for AssetCode
fn discriminant(&self) -> AssetType
Source§impl Discriminant<AssetType> for ChangeTrustAsset
impl Discriminant<AssetType> for ChangeTrustAsset
fn discriminant(&self) -> AssetType
Source§impl Discriminant<AssetType> for TrustLineAsset
impl Discriminant<AssetType> for TrustLineAsset
fn discriminant(&self) -> AssetType
Source§impl Ord for AssetType
impl Ord for AssetType
Source§impl PartialOrd for AssetType
impl PartialOrd for AssetType
Source§impl ReadXdr for AssetType
impl ReadXdr for AssetType
Source§fn read_xdr<R>(r: &mut Limited<R>) -> Result<AssetType, Error>where
R: Read,
fn read_xdr<R>(r: &mut Limited<R>) -> Result<AssetType, Error>where
R: Read,
Read the XDR and construct the type. Read more
Source§fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
Read the XDR and construct the type, and consider it an error if the
read does not completely consume the read implementation. Read more
Source§fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR and construct the type. Read more
Source§fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR into the existing value, and consider it an error if the
read does not completely consume the read implementation. Read more
Source§fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
Create an iterator that reads the read implementation as a stream of
values that are read into the implementing type. Read more
Source§impl Variants<AssetType> for ChangeTrustAsset
impl Variants<AssetType> for ChangeTrustAsset
impl Copy for AssetType
impl Enum for AssetType
impl Eq for AssetType
impl StructuralPartialEq for AssetType
impl Union<AssetType> for Asset
impl Union<AssetType> for AssetCode
impl Union<AssetType> for ChangeTrustAsset
impl Union<AssetType> for TrustLineAsset
Auto Trait Implementations§
impl Freeze for AssetType
impl RefUnwindSafe for AssetType
impl Send for AssetType
impl Sync for AssetType
impl Unpin for AssetType
impl UnwindSafe for AssetType
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