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§

fn discriminant(&self) -> D

Implementors§

§

impl Discriminant<AccountMergeResultCode> for AccountMergeResult

§

impl Discriminant<AllowTrustResultCode> for AllowTrustResult

§

impl Discriminant<AssetType> for Asset

§

impl Discriminant<AssetType> for AssetCode

§

impl Discriminant<AssetType> for ChangeTrustAsset

§

impl Discriminant<AssetType> for TrustLineAsset

§

impl Discriminant<BeginSponsoringFutureReservesResultCode> for BeginSponsoringFutureReservesResult

§

impl Discriminant<BucketEntryType> for BucketEntry

§

impl Discriminant<BumpSequenceResultCode> for BumpSequenceResult

§

impl Discriminant<ChangeTrustResultCode> for ChangeTrustResult

§

impl Discriminant<ClaimAtomType> for ClaimAtom

§

impl Discriminant<ClaimClaimableBalanceResultCode> for ClaimClaimableBalanceResult

§

impl Discriminant<ClaimPredicateType> for ClaimPredicate

§

impl Discriminant<ClaimableBalanceIdType> for ClaimableBalanceId

§

impl Discriminant<ClaimantType> for Claimant

§

impl Discriminant<ClawbackClaimableBalanceResultCode> for ClawbackClaimableBalanceResult

§

impl Discriminant<ClawbackResultCode> for ClawbackResult

§

impl Discriminant<ConfigSettingId> for ConfigSettingEntry

§

impl Discriminant<ContractExecutableType> for ContractExecutable

§

impl Discriminant<ContractIdPreimageType> for ContractIdPreimage

§

impl Discriminant<CreateAccountResultCode> for CreateAccountResult

§

impl Discriminant<CreateClaimableBalanceResultCode> for CreateClaimableBalanceResult

§

impl Discriminant<CryptoKeyType> for MuxedAccount

§

impl Discriminant<EndSponsoringFutureReservesResultCode> for EndSponsoringFutureReservesResult

§

impl Discriminant<EnvelopeType> for FeeBumpTransactionInnerTx

§

impl Discriminant<EnvelopeType> for HashIdPreimage

§

impl Discriminant<EnvelopeType> for TransactionEnvelope

§

impl Discriminant<EnvelopeType> for TransactionSignaturePayloadTaggedTransaction

§

impl Discriminant<ExtendFootprintTtlResultCode> for ExtendFootprintTtlResult

§

impl Discriminant<HostFunctionType> for HostFunction

§

impl Discriminant<InflationResultCode> for InflationResult

§

impl Discriminant<InvokeHostFunctionResultCode> for InvokeHostFunctionResult

§

impl Discriminant<IpAddrType> for PeerAddressIp

§

impl Discriminant<LedgerEntryChangeType> for LedgerEntryChange

§

impl Discriminant<LedgerEntryType> for LedgerEntryData

§

impl Discriminant<LedgerEntryType> for LedgerKey

§

impl Discriminant<LedgerUpgradeType> for LedgerUpgrade

§

impl Discriminant<LiquidityPoolDepositResultCode> for LiquidityPoolDepositResult

§

impl Discriminant<LiquidityPoolType> for LiquidityPoolEntryBody

§

impl Discriminant<LiquidityPoolType> for LiquidityPoolParameters

§

impl Discriminant<LiquidityPoolWithdrawResultCode> for LiquidityPoolWithdrawResult

§

impl Discriminant<ManageBuyOfferResultCode> for ManageBuyOfferResult

§

impl Discriminant<ManageDataResultCode> for ManageDataResult

§

impl Discriminant<ManageOfferEffect> for ManageOfferSuccessResultOffer

§

impl Discriminant<ManageSellOfferResultCode> for ManageSellOfferResult

§

impl Discriminant<MemoType> for Memo

§

impl Discriminant<MessageType> for StellarMessage

§

impl Discriminant<OperationResultCode> for OperationResult

§

impl Discriminant<OperationType> for OperationBody

§

impl Discriminant<OperationType> for OperationResultTr

§

impl Discriminant<PathPaymentStrictReceiveResultCode> for PathPaymentStrictReceiveResult

§

impl Discriminant<PathPaymentStrictSendResultCode> for PathPaymentStrictSendResult

§

impl Discriminant<PaymentResultCode> for PaymentResult

§

impl Discriminant<PreconditionType> for Preconditions

§

impl Discriminant<PublicKeyType> for PublicKey

§

impl Discriminant<RestoreFootprintResultCode> for RestoreFootprintResult

§

impl Discriminant<RevokeSponsorshipResultCode> for RevokeSponsorshipResult

§

impl Discriminant<RevokeSponsorshipType> for RevokeSponsorshipOp

§

impl Discriminant<ScAddressType> for ScAddress

§

impl Discriminant<ScEnvMetaKind> for ScEnvMetaEntry

§

impl Discriminant<ScErrorType> for ScError

§

impl Discriminant<ScMetaKind> for ScMetaEntry

§

impl Discriminant<ScSpecEntryKind> for ScSpecEntry

§

impl Discriminant<ScSpecType> for ScSpecTypeDef

§

impl Discriminant<ScSpecUdtUnionCaseV0Kind> for ScSpecUdtUnionCaseV0

§

impl Discriminant<ScValType> for ScVal

§

impl Discriminant<ScpStatementType> for ScpStatementPledges

§

impl Discriminant<SetOptionsResultCode> for SetOptionsResult

§

impl Discriminant<SetTrustLineFlagsResultCode> for SetTrustLineFlagsResult

§

impl Discriminant<SignerKeyType> for SignerKey

§

impl Discriminant<SorobanAuthorizedFunctionType> for SorobanAuthorizedFunction

§

impl Discriminant<SorobanCredentialsType> for SorobanCredentials

§

impl Discriminant<StellarValueType> for StellarValueExt

§

impl Discriminant<SurveyMessageResponseType> for SurveyResponseBody

§

impl Discriminant<TransactionResultCode> for InnerTransactionResultResult

§

impl Discriminant<TransactionResultCode> for TransactionResultResult

§

impl Discriminant<TxSetComponentType> for TxSetComponent

§

impl Discriminant<i32> for AccountEntryExt

§

impl Discriminant<i32> for AccountEntryExtensionV1Ext

§

impl Discriminant<i32> for AccountEntryExtensionV2Ext

§

impl Discriminant<i32> for BucketMetadataExt

§

impl Discriminant<i32> for ClaimableBalanceEntryExt

§

impl Discriminant<i32> for ClaimableBalanceEntryExtensionV1Ext

§

impl Discriminant<i32> for ContractEventBody

§

impl Discriminant<i32> for DataEntryExt

§

impl Discriminant<i32> for ExtensionPoint

§

impl Discriminant<i32> for FeeBumpTransactionExt

§

impl Discriminant<i32> for GeneralizedTransactionSet

§

impl Discriminant<i32> for InnerTransactionResultExt

§

impl Discriminant<i32> for LedgerCloseMeta

§

impl Discriminant<i32> for LedgerEntryExt

§

impl Discriminant<i32> for LedgerEntryExtensionV1Ext

§

impl Discriminant<i32> for LedgerHeaderExt

§

impl Discriminant<i32> for LedgerHeaderExtensionV1Ext

§

impl Discriminant<i32> for LedgerHeaderHistoryEntryExt

§

impl Discriminant<i32> for OfferEntryExt

§

impl Discriminant<i32> for PersistedScpState

§

impl Discriminant<i32> for ScpHistoryEntry

§

impl Discriminant<i32> for StoredTransactionSet

§

impl Discriminant<i32> for TransactionExt

§

impl Discriminant<i32> for TransactionHistoryEntryExt

§

impl Discriminant<i32> for TransactionHistoryResultEntryExt

§

impl Discriminant<i32> for TransactionMeta

§

impl Discriminant<i32> for TransactionPhase

§

impl Discriminant<i32> for TransactionResultExt

§

impl Discriminant<i32> for TransactionV0Ext

§

impl Discriminant<i32> for TrustLineEntryExt

§

impl Discriminant<i32> for TrustLineEntryExtensionV2Ext

§

impl Discriminant<i32> for TrustLineEntryV1Ext

§

impl Discriminant<u32> for AuthenticatedMessage