Enum substrate_stellar_sdk::Asset [−][src]
pub enum Asset { AssetTypeNative, AssetTypeCreditAlphanum4(AssetAlphaNum4), AssetTypeCreditAlphanum12(AssetAlphaNum12), }
Expand description
Autogenerated definition for type Asset
Variants
AssetTypeCreditAlphanum4(AssetAlphaNum4)
AssetTypeCreditAlphanum12(AssetAlphaNum12)
Implementations
pub fn from_asset_code<T: AsRef<[u8]>, S: IntoAccountId>(
asset_code: T,
issuer: S
) -> Result<Self, StellarSdkError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Asset
impl UnwindSafe for Asset
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Convert from a value of T
into an equivalent instance of Self
. Read more
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more
pub fn unchecked_into(self) -> T
pub fn unchecked_into(self) -> T
The counterpart to unchecked_from
.
pub fn unique_saturated_into(self) -> T
pub fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,