soroban_env_host::xdr

Trait Discriminant

Source
pub trait Discriminant<D> {
    // Required method
    fn discriminant(&self) -> D;
}
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<ArchivalProofType> for ArchivalProofBody

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<ColdArchiveBucketEntryType> for ColdArchiveBucketEntry

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<HotArchiveBucketEntryType> for HotArchiveBucketEntry

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 ContractCodeEntryExt

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 LedgerCloseMetaExt

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 SorobanTransactionMetaExt

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