pub trait Discriminant<D> {
    // Required method
    fn discriminant(&self) -> D;
}
Available on crate feature next only.
Expand description

Discriminant defines types that may contain a one-of value determined according to the discriminant, and exposes the value of the discriminant for that type, such as in an XDR union.

Required Methods§

source

fn discriminant(&self) -> D

Implementors§

source§

impl Discriminant<AccountMergeResultCode> for AccountMergeResult

source§

impl Discriminant<AllowTrustResultCode> for AllowTrustResult

source§

impl Discriminant<AssetType> for Asset

source§

impl Discriminant<AssetType> for AssetCode

source§

impl Discriminant<AssetType> for ChangeTrustAsset

source§

impl Discriminant<AssetType> for TrustLineAsset

source§

impl Discriminant<BeginSponsoringFutureReservesResultCode> for BeginSponsoringFutureReservesResult

source§

impl Discriminant<BucketEntryType> for BucketEntry

source§

impl Discriminant<BumpSequenceResultCode> for BumpSequenceResult

source§

impl Discriminant<ChangeTrustResultCode> for ChangeTrustResult

source§

impl Discriminant<ClaimAtomType> for ClaimAtom

source§

impl Discriminant<ClaimClaimableBalanceResultCode> for ClaimClaimableBalanceResult

source§

impl Discriminant<ClaimPredicateType> for ClaimPredicate

source§

impl Discriminant<ClaimableBalanceIdType> for ClaimableBalanceId

source§

impl Discriminant<ClaimantType> for Claimant

source§

impl Discriminant<ClawbackClaimableBalanceResultCode> for ClawbackClaimableBalanceResult

source§

impl Discriminant<ClawbackResultCode> for ClawbackResult

source§

impl Discriminant<ConfigSettingId> for ConfigSettingEntry

source§

impl Discriminant<ContractExecutableType> for ContractExecutable

source§

impl Discriminant<ContractIdPreimageType> for ContractIdPreimage

source§

impl Discriminant<CreateAccountResultCode> for CreateAccountResult

source§

impl Discriminant<CreateClaimableBalanceResultCode> for CreateClaimableBalanceResult

source§

impl Discriminant<CryptoKeyType> for MuxedAccount

source§

impl Discriminant<EndSponsoringFutureReservesResultCode> for EndSponsoringFutureReservesResult

source§

impl Discriminant<EnvelopeType> for FeeBumpTransactionInnerTx

source§

impl Discriminant<EnvelopeType> for HashIdPreimage

source§

impl Discriminant<EnvelopeType> for TransactionEnvelope

source§

impl Discriminant<EnvelopeType> for TransactionSignaturePayloadTaggedTransaction

source§

impl Discriminant<ExtendFootprintTtlResultCode> for ExtendFootprintTtlResult

source§

impl Discriminant<HostFunctionType> for HostFunction

source§

impl Discriminant<InflationResultCode> for InflationResult

source§

impl Discriminant<InvokeHostFunctionResultCode> for InvokeHostFunctionResult

source§

impl Discriminant<IpAddrType> for PeerAddressIp

source§

impl Discriminant<LedgerEntryChangeType> for LedgerEntryChange

source§

impl Discriminant<LedgerEntryType> for LedgerEntryData

source§

impl Discriminant<LedgerEntryType> for LedgerKey

source§

impl Discriminant<LedgerUpgradeType> for LedgerUpgrade

source§

impl Discriminant<LiquidityPoolDepositResultCode> for LiquidityPoolDepositResult

source§

impl Discriminant<LiquidityPoolType> for LiquidityPoolEntryBody

source§

impl Discriminant<LiquidityPoolType> for LiquidityPoolParameters

source§

impl Discriminant<LiquidityPoolWithdrawResultCode> for LiquidityPoolWithdrawResult

source§

impl Discriminant<ManageBuyOfferResultCode> for ManageBuyOfferResult

source§

impl Discriminant<ManageDataResultCode> for ManageDataResult

source§

impl Discriminant<ManageOfferEffect> for ManageOfferSuccessResultOffer

source§

impl Discriminant<ManageSellOfferResultCode> for ManageSellOfferResult

source§

impl Discriminant<MemoType> for Memo

source§

impl Discriminant<MessageType> for StellarMessage

source§

impl Discriminant<OperationResultCode> for OperationResult

source§

impl Discriminant<OperationType> for OperationBody

source§

impl Discriminant<OperationType> for OperationResultTr

source§

impl Discriminant<PathPaymentStrictReceiveResultCode> for PathPaymentStrictReceiveResult

source§

impl Discriminant<PathPaymentStrictSendResultCode> for PathPaymentStrictSendResult

source§

impl Discriminant<PaymentResultCode> for PaymentResult

source§

impl Discriminant<PreconditionType> for Preconditions

source§

impl Discriminant<PublicKeyType> for PublicKey

source§

impl Discriminant<RestoreFootprintResultCode> for RestoreFootprintResult

source§

impl Discriminant<RevokeSponsorshipResultCode> for RevokeSponsorshipResult

source§

impl Discriminant<RevokeSponsorshipType> for RevokeSponsorshipOp

source§

impl Discriminant<ScAddressType> for ScAddress

source§

impl Discriminant<ScEnvMetaKind> for ScEnvMetaEntry

source§

impl Discriminant<ScErrorType> for ScError

source§

impl Discriminant<ScMetaKind> for ScMetaEntry

source§

impl Discriminant<ScSpecEntryKind> for ScSpecEntry

source§

impl Discriminant<ScSpecType> for ScSpecTypeDef

source§

impl Discriminant<ScSpecUdtUnionCaseV0Kind> for ScSpecUdtUnionCaseV0

source§

impl Discriminant<ScValType> for ScVal

source§

impl Discriminant<ScpStatementType> for ScpStatementPledges

source§

impl Discriminant<SetOptionsResultCode> for SetOptionsResult

source§

impl Discriminant<SetTrustLineFlagsResultCode> for SetTrustLineFlagsResult

source§

impl Discriminant<SignerKeyType> for SignerKey

source§

impl Discriminant<SorobanAuthorizedFunctionType> for SorobanAuthorizedFunction

source§

impl Discriminant<SorobanCredentialsType> for SorobanCredentials

source§

impl Discriminant<StellarValueType> for StellarValueExt

source§

impl Discriminant<SurveyMessageResponseType> for SurveyResponseBody

source§

impl Discriminant<TransactionResultCode> for InnerTransactionResultResult

source§

impl Discriminant<TransactionResultCode> for TransactionResultResult

source§

impl Discriminant<TxSetComponentType> for TxSetComponent

source§

impl Discriminant<i32> for AccountEntryExt

source§

impl Discriminant<i32> for AccountEntryExtensionV1Ext

source§

impl Discriminant<i32> for AccountEntryExtensionV2Ext

source§

impl Discriminant<i32> for BucketMetadataExt

source§

impl Discriminant<i32> for ClaimableBalanceEntryExt

source§

impl Discriminant<i32> for ClaimableBalanceEntryExtensionV1Ext

source§

impl Discriminant<i32> for ContractEventBody

source§

impl Discriminant<i32> for DataEntryExt

source§

impl Discriminant<i32> for ExtensionPoint

source§

impl Discriminant<i32> for FeeBumpTransactionExt

source§

impl Discriminant<i32> for GeneralizedTransactionSet

source§

impl Discriminant<i32> for InnerTransactionResultExt

source§

impl Discriminant<i32> for LedgerCloseMeta

source§

impl Discriminant<i32> for LedgerEntryExt

source§

impl Discriminant<i32> for LedgerEntryExtensionV1Ext

source§

impl Discriminant<i32> for LedgerHeaderExt

source§

impl Discriminant<i32> for LedgerHeaderExtensionV1Ext

source§

impl Discriminant<i32> for LedgerHeaderHistoryEntryExt

source§

impl Discriminant<i32> for OfferEntryExt

source§

impl Discriminant<i32> for PersistedScpState

source§

impl Discriminant<i32> for ScpHistoryEntry

source§

impl Discriminant<i32> for StoredTransactionSet

source§

impl Discriminant<i32> for TransactionExt

source§

impl Discriminant<i32> for TransactionHistoryEntryExt

source§

impl Discriminant<i32> for TransactionHistoryResultEntryExt

source§

impl Discriminant<i32> for TransactionMeta

source§

impl Discriminant<i32> for TransactionPhase

source§

impl Discriminant<i32> for TransactionResultExt

source§

impl Discriminant<i32> for TransactionV0Ext

source§

impl Discriminant<i32> for TrustLineEntryExt

source§

impl Discriminant<i32> for TrustLineEntryExtensionV2Ext

source§

impl Discriminant<i32> for TrustLineEntryV1Ext

source§

impl Discriminant<u32> for AuthenticatedMessage