Enum substrate_stellar_sdk::types::LedgerKey [−][src]
pub enum LedgerKey { Account(LedgerKeyAccount), Trustline(LedgerKeyTrustLine), Offer(LedgerKeyOffer), Data(LedgerKeyData), ClaimableBalance(LedgerKeyClaimableBalance), LiquidityPool(LedgerKeyLiquidityPool), }
Expand description
Autogenerated definition for type LedgerKey
Variants
Account(LedgerKeyAccount)
Trustline(LedgerKeyTrustLine)
Offer(LedgerKeyOffer)
Data(LedgerKeyData)
ClaimableBalance(LedgerKeyClaimableBalance)
LiquidityPool(LedgerKeyLiquidityPool)
Implementations
pub fn from_trustline<T: IntoAccountId>(
account_id: T,
asset: Asset
) -> Result<Self, StellarSdkError>
pub fn from_offer<T: IntoAccountId>(
seller_id: T,
offer_id: i64
) -> Result<Self, StellarSdkError>
pub fn from_data<T: IntoAccountId, S: AsRef<[u8]>>(
account_id: T,
data_name: S
) -> Result<Self, StellarSdkError>
pub fn from_claimable_balance_id<T: IntoClaimbleBalanceId>(
balance_id: T
) -> Result<Self, StellarSdkError>
pub fn from_liquidity_pool_id<T: IntoHash>(
liquidity_pool_id: T
) -> Result<Self, StellarSdkError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LedgerKey
impl UnwindSafe for LedgerKey
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,