Skip to main content

Crate stellar_xdr

Crate stellar_xdr 

Source
Expand description

Library and CLI containing types and functionality for working with Stellar XDR.

Types are generated from XDR definitions hosted at stellar/stellar-xdr using the Rust XDR generator in xdr-generator-rust/.

§Support

The most recent stellar-xdr major release is supported with critical security fixes. Critical security issues may be backported to earlier versions if practical, but not guaranteed. General bugs are only fixed on, and new features are only added to, the latest major release.

§Usage

§Library

To use the library, include in your toml:

stellar-xdr = { version = "...", default-features = true, features = [] }
§Features

The crate has several features, tiers of functionality, and ancillary functionality.

Default features: std.

Tiers of functionality:

  1. std – The std feature provides all functionality (types, encode, decode), and is the default feature set.
  2. alloc – The alloc feature uses Box and Vec types for recursive references and arrays, and is automatically enabled if the std feature is enabled. The default global allocator is used. Support for a custom allocator will be added in #39. No encode or decode capability exists, only types. Encode and decode capability will be added in #46.
  3. If std or alloc are not enabled recursive and array types requires static lifetime values. No encode or decode capability exists. Encode and decode capability will be added in #47.

Ancillary functionality:

  1. type_enum – Enables the generated dynamic Type and TypeVariant APIs for runtime-selected XDR decoding, encoding, schema generation.
  2. base64 – Enables support for base64 encoding and decoding.
  3. serde – Enables support for serializing and deserializing types with the serde crate.
  4. serde_json – Enables support for built-in functionality specifically for serde_json. Often not required to use the types with serde_json, and only necessary to use utility functions that depend on serde_json.
  5. arbitrary – Enables support for interop with the arbitrary crate.
  6. hex – Enables support for hex in string representations of some types. Automatically enabled when serde is enabled.
  7. schemars – Enables support for JSON Schema generation. (Experimental)

Features marked experimental may disappear at anytime, see breaking changes at anytime, or and may be minimal implementations instead of complete.

§CLI

To use the CLI:

cargo install --locked stellar-xdr --version ... --features cli
§Examples

Parse a TransactionEnvelope:

stellar-xdr decode --type TransactionEnvelope << -
AAAAA...
-

Parse a ScSpecEntry stream from a contract:

stellar-xdr decode --type ScSpecEntry --input stream-base64 --output json-formatted << -
AAAAA...
-

Parse a BucketEntry framed stream from a bucket file:

stellar-xdr decode --type BucketEntry --input stream-framed --output json-formatted bucket.xdr

Modules§

clicli
int128_helpers
schemarsschemars

Structs§

AccountEntry
AccountEntry is an XDR Struct defined as:
AccountEntryExtensionV1
AccountEntryExtensionV1 is an XDR Struct defined as:
AccountEntryExtensionV2
AccountEntryExtensionV2 is an XDR Struct defined as:
AccountEntryExtensionV3
AccountEntryExtensionV3 is an XDR Struct defined as:
AccountId
AccountId is an XDR Typedef defined as:
AllowTrustOp
AllowTrustOp is an XDR Struct defined as:
AlphaNum4
AlphaNum4 is an XDR Struct defined as:
AlphaNum12
AlphaNum12 is an XDR Struct defined as:
AssetCode4
AssetCode4 is an XDR Typedef defined as:
AssetCode12
AssetCode12 is an XDR Typedef defined as:
Auth
Auth is an XDR Struct defined as:
AuthCert
AuthCert is an XDR Struct defined as:
AuthenticatedMessageV0
AuthenticatedMessageV0 is an XDR NestedStruct defined as:
BeginSponsoringFutureReservesOp
BeginSponsoringFutureReservesOp is an XDR Struct defined as:
BucketMetadata
BucketMetadata is an XDR Struct defined as:
BumpSequenceOp
BumpSequenceOp is an XDR Struct defined as:
BytesMalloc
ChangeTrustOp
ChangeTrustOp is an XDR Struct defined as:
ClaimClaimableBalanceOp
ClaimClaimableBalanceOp is an XDR Struct defined as:
ClaimLiquidityAtom
ClaimLiquidityAtom is an XDR Struct defined as:
ClaimOfferAtom
ClaimOfferAtom is an XDR Struct defined as:
ClaimOfferAtomV0
ClaimOfferAtomV0 is an XDR Struct defined as:
ClaimableBalanceEntry
ClaimableBalanceEntry is an XDR Struct defined as:
ClaimableBalanceEntryExtensionV1
ClaimableBalanceEntryExtensionV1 is an XDR Struct defined as:
ClaimantV0
ClaimantV0 is an XDR NestedStruct defined as:
ClawbackClaimableBalanceOp
ClawbackClaimableBalanceOp is an XDR Struct defined as:
ClawbackOp
ClawbackOp is an XDR Struct defined as:
ConfigSettingContractBandwidthV0
ConfigSettingContractBandwidthV0 is an XDR Struct defined as:
ConfigSettingContractComputeV0
ConfigSettingContractComputeV0 is an XDR Struct defined as:
ConfigSettingContractEventsV0
ConfigSettingContractEventsV0 is an XDR Struct defined as:
ConfigSettingContractExecutionLanesV0
ConfigSettingContractExecutionLanesV0 is an XDR Struct defined as:
ConfigSettingContractHistoricalDataV0
ConfigSettingContractHistoricalDataV0 is an XDR Struct defined as:
ConfigSettingContractLedgerCostExtV0
ConfigSettingContractLedgerCostExtV0 is an XDR Struct defined as:
ConfigSettingContractLedgerCostV0
ConfigSettingContractLedgerCostV0 is an XDR Struct defined as:
ConfigSettingContractParallelComputeV0
ConfigSettingContractParallelComputeV0 is an XDR Struct defined as:
ConfigSettingScpTiming
ConfigSettingScpTiming is an XDR Struct defined as:
ConfigUpgradeSet
ConfigUpgradeSet is an XDR Struct defined as:
ConfigUpgradeSetKey
ConfigUpgradeSetKey is an XDR Struct defined as:
ContractCodeCostInputs
ContractCodeCostInputs is an XDR Struct defined as:
ContractCodeEntry
ContractCodeEntry is an XDR Struct defined as:
ContractCodeEntryV1
ContractCodeEntryV1 is an XDR NestedStruct defined as:
ContractCostParamEntry
ContractCostParamEntry is an XDR Struct defined as:
ContractCostParams
ContractCostParams is an XDR Typedef defined as:
ContractDataEntry
ContractDataEntry is an XDR Struct defined as:
ContractEvent
ContractEvent is an XDR Struct defined as:
ContractEventV0
ContractEventV0 is an XDR NestedStruct defined as:
ContractId
ContractId is an XDR Typedef defined as:
ContractIdPreimageFromAddress
ContractIdPreimageFromAddress is an XDR NestedStruct defined as:
CreateAccountOp
CreateAccountOp is an XDR Struct defined as:
CreateClaimableBalanceOp
CreateClaimableBalanceOp is an XDR Struct defined as:
CreateContractArgs
CreateContractArgs is an XDR Struct defined as:
CreateContractArgsV2
CreateContractArgsV2 is an XDR Struct defined as:
CreatePassiveSellOfferOp
CreatePassiveSellOfferOp is an XDR Struct defined as:
Curve25519Public
Curve25519Public is an XDR Struct defined as:
Curve25519Secret
Curve25519Secret is an XDR Struct defined as:
DataEntry
DataEntry is an XDR Struct defined as:
DataValue
DataValue is an XDR Typedef defined as:
DecoratedSignature
DecoratedSignature is an XDR Struct defined as:
DependentTxCluster
DependentTxCluster is an XDR Typedef defined as:
DiagnosticEvent
DiagnosticEvent is an XDR Struct defined as:
DontHave
DontHave is an XDR Struct defined as:
Duration
Duration is an XDR Typedef defined as:
EncodedLedgerKey
EncodedLedgerKey is an XDR Typedef defined as:
EncryptedBody
EncryptedBody is an XDR Typedef defined as:
EvictionIterator
EvictionIterator is an XDR Struct defined as:
ExtendFootprintTtlOp
ExtendFootprintTtlOp is an XDR Struct defined as:
FeeBumpTransaction
FeeBumpTransaction is an XDR Struct defined as:
FeeBumpTransactionEnvelope
FeeBumpTransactionEnvelope is an XDR Struct defined as:
FloodAdvert
FloodAdvert is an XDR Struct defined as:
FloodDemand
FloodDemand is an XDR Struct defined as:
Frame
Frame wraps an XDR object with the framing defined by the Record Marking Standard in RFC 5531 Section 11.
FreezeBypassTxs
FreezeBypassTxs is an XDR Struct defined as:
FreezeBypassTxsDelta
FreezeBypassTxsDelta is an XDR Struct defined as:
FrozenLedgerKeys
FrozenLedgerKeys is an XDR Struct defined as:
FrozenLedgerKeysDelta
FrozenLedgerKeysDelta is an XDR Struct defined as:
Hash
Hash is an XDR Typedef defined as:
HashIdPreimageContractId
HashIdPreimageContractId is an XDR NestedStruct defined as:
HashIdPreimageOperationId
HashIdPreimageOperationId is an XDR NestedStruct defined as:
HashIdPreimageRevokeId
HashIdPreimageRevokeId is an XDR NestedStruct defined as:
HashIdPreimageSorobanAuthorization
HashIdPreimageSorobanAuthorization is an XDR NestedStruct defined as:
HashIdPreimageSorobanAuthorizationWithAddress
HashIdPreimageSorobanAuthorizationWithAddress is an XDR NestedStruct defined as:
Hello
Hello is an XDR Struct defined as:
HmacSha256Key
HmacSha256Key is an XDR Struct defined as:
HmacSha256Mac
HmacSha256Mac is an XDR Struct defined as:
InflationPayout
InflationPayout is an XDR Struct defined as:
InnerTransactionResult
InnerTransactionResult is an XDR Struct defined as:
InnerTransactionResultPair
InnerTransactionResultPair is an XDR Struct defined as:
Int128Parts
Int128Parts is an XDR Struct defined as:
Int256Parts
Int256Parts is an XDR Struct defined as:
InvokeContractArgs
InvokeContractArgs is an XDR Struct defined as:
InvokeHostFunctionOp
InvokeHostFunctionOp is an XDR Struct defined as:
InvokeHostFunctionSuccessPreImage
InvokeHostFunctionSuccessPreImage is an XDR Struct defined as:
LedgerBounds
LedgerBounds is an XDR Struct defined as:
LedgerCloseMetaBatch
LedgerCloseMetaBatch is an XDR Struct defined as:
LedgerCloseMetaExtV1
LedgerCloseMetaExtV1 is an XDR Struct defined as:
LedgerCloseMetaV0
LedgerCloseMetaV0 is an XDR Struct defined as:
LedgerCloseMetaV1
LedgerCloseMetaV1 is an XDR Struct defined as:
LedgerCloseMetaV2
LedgerCloseMetaV2 is an XDR Struct defined as:
LedgerCloseValueSignature
LedgerCloseValueSignature is an XDR Struct defined as:
LedgerEntry
LedgerEntry is an XDR Struct defined as:
LedgerEntryChanges
LedgerEntryChanges is an XDR Typedef defined as:
LedgerEntryExtensionV1
LedgerEntryExtensionV1 is an XDR Struct defined as:
LedgerFootprint
LedgerFootprint is an XDR Struct defined as:
LedgerHeader
LedgerHeader is an XDR Struct defined as:
LedgerHeaderExtensionV1
LedgerHeaderExtensionV1 is an XDR Struct defined as:
LedgerHeaderHistoryEntry
LedgerHeaderHistoryEntry is an XDR Struct defined as:
LedgerKeyAccount
LedgerKeyAccount is an XDR NestedStruct defined as:
LedgerKeyClaimableBalance
LedgerKeyClaimableBalance is an XDR NestedStruct defined as:
LedgerKeyConfigSetting
LedgerKeyConfigSetting is an XDR NestedStruct defined as:
LedgerKeyContractCode
LedgerKeyContractCode is an XDR NestedStruct defined as:
LedgerKeyContractData
LedgerKeyContractData is an XDR NestedStruct defined as:
LedgerKeyData
LedgerKeyData is an XDR NestedStruct defined as:
LedgerKeyLiquidityPool
LedgerKeyLiquidityPool is an XDR NestedStruct defined as:
LedgerKeyOffer
LedgerKeyOffer is an XDR NestedStruct defined as:
LedgerKeyTrustLine
LedgerKeyTrustLine is an XDR NestedStruct defined as:
LedgerKeyTtl
LedgerKeyTtl is an XDR NestedStruct defined as:
LedgerScpMessages
LedgerScpMessages is an XDR Struct defined as:
Liabilities
Liabilities is an XDR Struct defined as:
Limitedstd
Limited wraps an object and provides functions for enforcing limits.
Limitsstd
Limits contains the limits that a limited reader or writer will be constrained to.
LiquidityPoolConstantProductParameters
LiquidityPoolConstantProductParameters is an XDR Struct defined as:
LiquidityPoolDepositOp
LiquidityPoolDepositOp is an XDR Struct defined as:
LiquidityPoolEntry
LiquidityPoolEntry is an XDR Struct defined as:
LiquidityPoolEntryConstantProduct
LiquidityPoolEntryConstantProduct is an XDR NestedStruct defined as:
LiquidityPoolWithdrawOp
LiquidityPoolWithdrawOp is an XDR Struct defined as:
ManageBuyOfferOp
ManageBuyOfferOp is an XDR Struct defined as:
ManageDataOp
ManageDataOp is an XDR Struct defined as:
ManageOfferSuccessResult
ManageOfferSuccessResult is an XDR Struct defined as:
ManageSellOfferOp
ManageSellOfferOp is an XDR Struct defined as:
MuxedAccountMed25519
MuxedAccountMed25519 is an XDR NestedStruct defined as:
MuxedEd25519Account
MuxedEd25519Account is an XDR Struct defined as:
NodeId
NodeId is an XDR Typedef defined as:
OfferEntry
OfferEntry is an XDR Struct defined as:
Operation
Operation is an XDR Struct defined as:
OperationMeta
OperationMeta is an XDR Struct defined as:
OperationMetaV2
OperationMetaV2 is an XDR Struct defined as:
ParallelTxExecutionStage
ParallelTxExecutionStage is an XDR Typedef defined as:
ParallelTxsComponent
ParallelTxsComponent is an XDR Struct defined as:
PathPaymentStrictReceiveOp
PathPaymentStrictReceiveOp is an XDR Struct defined as:
PathPaymentStrictReceiveResultSuccess
PathPaymentStrictReceiveResultSuccess is an XDR NestedStruct defined as:
PathPaymentStrictSendOp
PathPaymentStrictSendOp is an XDR Struct defined as:
PathPaymentStrictSendResultSuccess
PathPaymentStrictSendResultSuccess is an XDR NestedStruct defined as:
PaymentOp
PaymentOp is an XDR Struct defined as:
PeerAddress
PeerAddress is an XDR Struct defined as:
PeerStats
PeerStats is an XDR Struct defined as:
PersistedScpStateV0
PersistedScpStateV0 is an XDR Struct defined as:
PersistedScpStateV1
PersistedScpStateV1 is an XDR Struct defined as:
PoolId
PoolId is an XDR Typedef defined as:
PreconditionsV2
PreconditionsV2 is an XDR Struct defined as:
Price
Price is an XDR Struct defined as:
ReadXdrIterstd
RestoreFootprintOp
RestoreFootprintOp is an XDR Struct defined as:
RevokeSponsorshipOpSigner
RevokeSponsorshipOpSigner is an XDR NestedStruct defined as:
SError
SError is an XDR Struct defined as:
ScBytes
ScBytes is an XDR Typedef defined as:
ScContractInstance
ScContractInstance is an XDR Struct defined as:
ScEnvMetaEntryInterfaceVersion
ScEnvMetaEntryInterfaceVersion is an XDR NestedStruct defined as:
ScMap
ScMap is an XDR Typedef defined as:
ScMapEntry
ScMapEntry is an XDR Struct defined as:
ScMetaV0
ScMetaV0 is an XDR Struct defined as:
ScNonceKey
ScNonceKey is an XDR Struct defined as:
ScSpecEventParamV0
ScSpecEventParamV0 is an XDR Struct defined as:
ScSpecEventV0
ScSpecEventV0 is an XDR Struct defined as:
ScSpecFunctionInputV0
ScSpecFunctionInputV0 is an XDR Struct defined as:
ScSpecFunctionV0
ScSpecFunctionV0 is an XDR Struct defined as:
ScSpecTypeBytesN
ScSpecTypeBytesN is an XDR Struct defined as:
ScSpecTypeMap
ScSpecTypeMap is an XDR Struct defined as:
ScSpecTypeOption
ScSpecTypeOption is an XDR Struct defined as:
ScSpecTypeResult
ScSpecTypeResult is an XDR Struct defined as:
ScSpecTypeTuple
ScSpecTypeTuple is an XDR Struct defined as:
ScSpecTypeUdt
ScSpecTypeUdt is an XDR Struct defined as:
ScSpecTypeVec
ScSpecTypeVec is an XDR Struct defined as:
ScSpecUdtEnumCaseV0
ScSpecUdtEnumCaseV0 is an XDR Struct defined as:
ScSpecUdtEnumV0
ScSpecUdtEnumV0 is an XDR Struct defined as:
ScSpecUdtErrorEnumCaseV0
ScSpecUdtErrorEnumCaseV0 is an XDR Struct defined as:
ScSpecUdtErrorEnumV0
ScSpecUdtErrorEnumV0 is an XDR Struct defined as:
ScSpecUdtStructFieldV0
ScSpecUdtStructFieldV0 is an XDR Struct defined as:
ScSpecUdtStructV0
ScSpecUdtStructV0 is an XDR Struct defined as:
ScSpecUdtUnionCaseTupleV0
ScSpecUdtUnionCaseTupleV0 is an XDR Struct defined as:
ScSpecUdtUnionCaseVoidV0
ScSpecUdtUnionCaseVoidV0 is an XDR Struct defined as:
ScSpecUdtUnionV0
ScSpecUdtUnionV0 is an XDR Struct defined as:
ScString
ScString is an XDR Typedef defined as:
ScSymbol
ScSymbol is an XDR Typedef defined as:
ScVec
ScVec is an XDR Typedef defined as:
ScpBallot
ScpBallot is an XDR Struct defined as:
ScpEnvelope
ScpEnvelope is an XDR Struct defined as:
ScpHistoryEntryV0
ScpHistoryEntryV0 is an XDR Struct defined as:
ScpNomination
ScpNomination is an XDR Struct defined as:
ScpQuorumSet
ScpQuorumSet is an XDR Struct defined as:
ScpStatement
ScpStatement is an XDR Struct defined as:
ScpStatementConfirm
ScpStatementConfirm is an XDR NestedStruct defined as:
ScpStatementExternalize
ScpStatementExternalize is an XDR NestedStruct defined as:
ScpStatementPrepare
ScpStatementPrepare is an XDR NestedStruct defined as:
SendMore
SendMore is an XDR Struct defined as:
SendMoreExtended
SendMoreExtended is an XDR Struct defined as:
SequenceNumber
SequenceNumber is an XDR Typedef defined as:
SerializedBinaryFuseFilter
SerializedBinaryFuseFilter is an XDR Struct defined as:
SetOptionsOp
SetOptionsOp is an XDR Struct defined as:
SetTrustLineFlagsOp
SetTrustLineFlagsOp is an XDR Struct defined as:
ShortHashSeed
ShortHashSeed is an XDR Struct defined as:
Signature
Signature is an XDR Typedef defined as:
SignatureHint
SignatureHint is an XDR Typedef defined as:
SignedTimeSlicedSurveyRequestMessage
SignedTimeSlicedSurveyRequestMessage is an XDR Struct defined as:
SignedTimeSlicedSurveyResponseMessage
SignedTimeSlicedSurveyResponseMessage is an XDR Struct defined as:
SignedTimeSlicedSurveyStartCollectingMessage
SignedTimeSlicedSurveyStartCollectingMessage is an XDR Struct defined as:
SignedTimeSlicedSurveyStopCollectingMessage
SignedTimeSlicedSurveyStopCollectingMessage is an XDR Struct defined as:
Signer
Signer is an XDR Struct defined as:
SignerKeyEd25519SignedPayload
SignerKeyEd25519SignedPayload is an XDR NestedStruct defined as:
SimplePaymentResult
SimplePaymentResult is an XDR Struct defined as:
SkipWhitespacestd
Forwards read operations to the wrapped object, skipping over any whitespace.
SorobanAddressCredentials
SorobanAddressCredentials is an XDR Struct defined as:
SorobanAddressCredentialsWithDelegates
SorobanAddressCredentialsWithDelegates is an XDR Struct defined as:
SorobanAuthorizationEntries
SorobanAuthorizationEntries is an XDR Typedef defined as:
SorobanAuthorizationEntry
SorobanAuthorizationEntry is an XDR Struct defined as:
SorobanAuthorizedInvocation
SorobanAuthorizedInvocation is an XDR Struct defined as:
SorobanDelegateSignature
SorobanDelegateSignature is an XDR Struct defined as:
SorobanResources
SorobanResources is an XDR Struct defined as:
SorobanResourcesExtV0
SorobanResourcesExtV0 is an XDR Struct defined as:
SorobanTransactionData
SorobanTransactionData is an XDR Struct defined as:
SorobanTransactionMeta
SorobanTransactionMeta is an XDR Struct defined as:
SorobanTransactionMetaExtV1
SorobanTransactionMetaExtV1 is an XDR Struct defined as:
SorobanTransactionMetaV2
SorobanTransactionMetaV2 is an XDR Struct defined as:
SponsorshipDescriptor
SponsorshipDescriptor is an XDR Typedef defined as:
StateArchivalSettings
StateArchivalSettings is an XDR Struct defined as:
StellarValue
StellarValue is an XDR Struct defined as:
StellarValueProposedValue
StellarValueProposedValue is an XDR NestedStruct defined as:
StoredDebugTransactionSet
StoredDebugTransactionSet is an XDR Struct defined as:
String32
String32 is an XDR Typedef defined as:
String64
String64 is an XDR Typedef defined as:
StringMalloc
A string type that contains arbitrary bytes.
SurveyRequestMessage
SurveyRequestMessage is an XDR Struct defined as:
SurveyResponseMessage
SurveyResponseMessage is an XDR Struct defined as:
TestNextType
TestNextType is an XDR Struct defined as:
Thresholds
Thresholds is an XDR Typedef defined as:
TimeBounds
TimeBounds is an XDR Struct defined as:
TimePoint
TimePoint is an XDR Typedef defined as:
TimeSlicedNodeData
TimeSlicedNodeData is an XDR Struct defined as:
TimeSlicedPeerData
TimeSlicedPeerData is an XDR Struct defined as:
TimeSlicedPeerDataList
TimeSlicedPeerDataList is an XDR Typedef defined as:
TimeSlicedSurveyRequestMessage
TimeSlicedSurveyRequestMessage is an XDR Struct defined as:
TimeSlicedSurveyResponseMessage
TimeSlicedSurveyResponseMessage is an XDR Struct defined as:
TimeSlicedSurveyStartCollectingMessage
TimeSlicedSurveyStartCollectingMessage is an XDR Struct defined as:
TimeSlicedSurveyStopCollectingMessage
TimeSlicedSurveyStopCollectingMessage is an XDR Struct defined as:
TopologyResponseBodyV2
TopologyResponseBodyV2 is an XDR Struct defined as:
Transaction
Transaction is an XDR Struct defined as:
TransactionEvent
TransactionEvent is an XDR Struct defined as:
TransactionHistoryEntry
TransactionHistoryEntry is an XDR Struct defined as:
TransactionHistoryResultEntry
TransactionHistoryResultEntry is an XDR Struct defined as:
TransactionMetaV1
TransactionMetaV1 is an XDR Struct defined as:
TransactionMetaV2
TransactionMetaV2 is an XDR Struct defined as:
TransactionMetaV3
TransactionMetaV3 is an XDR Struct defined as:
TransactionMetaV4
TransactionMetaV4 is an XDR Struct defined as:
TransactionResult
TransactionResult is an XDR Struct defined as:
TransactionResultMeta
TransactionResultMeta is an XDR Struct defined as:
TransactionResultMetaV1
TransactionResultMetaV1 is an XDR Struct defined as:
TransactionResultPair
TransactionResultPair is an XDR Struct defined as:
TransactionResultSet
TransactionResultSet is an XDR Struct defined as:
TransactionSet
TransactionSet is an XDR Struct defined as:
TransactionSetV1
TransactionSetV1 is an XDR Struct defined as:
TransactionSignaturePayload
TransactionSignaturePayload is an XDR Struct defined as:
TransactionV0
TransactionV0 is an XDR Struct defined as:
TransactionV0Envelope
TransactionV0Envelope is an XDR Struct defined as:
TransactionV1Envelope
TransactionV1Envelope is an XDR Struct defined as:
TrustLineEntry
TrustLineEntry is an XDR Struct defined as:
TrustLineEntryExtensionV2
TrustLineEntryExtensionV2 is an XDR Struct defined as:
TrustLineEntryV1
TrustLineEntryV1 is an XDR NestedStruct defined as:
TtlEntry
TtlEntry is an XDR Struct defined as:
TxAdvertVector
TxAdvertVector is an XDR Typedef defined as:
TxDemandVector
TxDemandVector is an XDR Typedef defined as:
TxSetComponentTxsMaybeDiscountedFee
TxSetComponentTxsMaybeDiscountedFee is an XDR NestedStruct defined as:
UInt128Parts
UInt128Parts is an XDR Struct defined as:
UInt256Parts
UInt256Parts is an XDR Struct defined as:
Uint256
Uint256 is an XDR Typedef defined as:
UpgradeEntryMeta
UpgradeEntryMeta is an XDR Struct defined as:
UpgradeType
UpgradeType is an XDR Typedef defined as:
Value
Value is an XDR Typedef defined as:
VecM
Version

Enums§

AccountEntryExt
AccountEntryExt is an XDR NestedUnion defined as:
AccountEntryExtensionV1Ext
AccountEntryExtensionV1Ext is an XDR NestedUnion defined as:
AccountEntryExtensionV2Ext
AccountEntryExtensionV2Ext is an XDR NestedUnion defined as:
AccountFlags
AccountFlags is an XDR Enum defined as:
AccountMergeResult
AccountMergeResult is an XDR Union defined as:
AccountMergeResultCode
AccountMergeResultCode is an XDR Enum defined as:
AllowTrustResult
AllowTrustResult is an XDR Union defined as:
AllowTrustResultCode
AllowTrustResultCode is an XDR Enum defined as:
Asset
Asset is an XDR Union defined as:
AssetCode
AssetCode is an XDR Union defined as:
AssetType
AssetType is an XDR Enum defined as:
AuthenticatedMessage
AuthenticatedMessage is an XDR Union defined as:
BeginSponsoringFutureReservesResult
BeginSponsoringFutureReservesResult is an XDR Union defined as:
BeginSponsoringFutureReservesResultCode
BeginSponsoringFutureReservesResultCode is an XDR Enum defined as:
BinaryFuseFilterType
BinaryFuseFilterType is an XDR Enum defined as:
BucketEntry
BucketEntry is an XDR Union defined as:
BucketEntryType
BucketEntryType is an XDR Enum defined as:
BucketListType
BucketListType is an XDR Enum defined as:
BucketMetadataExt
BucketMetadataExt is an XDR NestedUnion defined as:
BumpSequenceResult
BumpSequenceResult is an XDR Union defined as:
BumpSequenceResultCode
BumpSequenceResultCode is an XDR Enum defined as:
ChangeTrustAsset
ChangeTrustAsset is an XDR Union defined as:
ChangeTrustResult
ChangeTrustResult is an XDR Union defined as:
ChangeTrustResultCode
ChangeTrustResultCode is an XDR Enum defined as:
ClaimAtom
ClaimAtom is an XDR Union defined as:
ClaimAtomType
ClaimAtomType is an XDR Enum defined as:
ClaimClaimableBalanceResult
ClaimClaimableBalanceResult is an XDR Union defined as:
ClaimClaimableBalanceResultCode
ClaimClaimableBalanceResultCode is an XDR Enum defined as:
ClaimPredicate
ClaimPredicate is an XDR Union defined as:
ClaimPredicateType
ClaimPredicateType is an XDR Enum defined as:
ClaimableBalanceEntryExt
ClaimableBalanceEntryExt is an XDR NestedUnion defined as:
ClaimableBalanceEntryExtensionV1Ext
ClaimableBalanceEntryExtensionV1Ext is an XDR NestedUnion defined as:
ClaimableBalanceFlags
ClaimableBalanceFlags is an XDR Enum defined as:
ClaimableBalanceId
ClaimableBalanceId is an XDR Union defined as:
ClaimableBalanceIdType
ClaimableBalanceIdType is an XDR Enum defined as:
Claimant
Claimant is an XDR Union defined as:
ClaimantType
ClaimantType is an XDR Enum defined as:
ClawbackClaimableBalanceResult
ClawbackClaimableBalanceResult is an XDR Union defined as:
ClawbackClaimableBalanceResultCode
ClawbackClaimableBalanceResultCode is an XDR Enum defined as:
ClawbackResult
ClawbackResult is an XDR Union defined as:
ClawbackResultCode
ClawbackResultCode is an XDR Enum defined as:
ConfigSettingEntry
ConfigSettingEntry is an XDR Union defined as:
ConfigSettingId
ConfigSettingId is an XDR Enum defined as:
ContractCodeEntryExt
ContractCodeEntryExt is an XDR NestedUnion defined as:
ContractCostType
ContractCostType is an XDR Enum defined as:
ContractDataDurability
ContractDataDurability is an XDR Enum defined as:
ContractEventBody
ContractEventBody is an XDR NestedUnion defined as:
ContractEventType
ContractEventType is an XDR Enum defined as:
ContractExecutable
ContractExecutable is an XDR Union defined as:
ContractExecutableType
ContractExecutableType is an XDR Enum defined as:
ContractIdPreimage
ContractIdPreimage is an XDR Union defined as:
ContractIdPreimageType
ContractIdPreimageType is an XDR Enum defined as:
CreateAccountResult
CreateAccountResult is an XDR Union defined as:
CreateAccountResultCode
CreateAccountResultCode is an XDR Enum defined as:
CreateClaimableBalanceResult
CreateClaimableBalanceResult is an XDR Union defined as:
CreateClaimableBalanceResultCode
CreateClaimableBalanceResultCode is an XDR Enum defined as:
CryptoKeyType
CryptoKeyType is an XDR Enum defined as:
DataEntryExt
DataEntryExt is an XDR NestedUnion defined as:
EndSponsoringFutureReservesResult
EndSponsoringFutureReservesResult is an XDR Union defined as:
EndSponsoringFutureReservesResultCode
EndSponsoringFutureReservesResultCode is an XDR Enum defined as:
EnvelopeType
EnvelopeType is an XDR Enum defined as:
Error
Error contains all errors returned by functions in this crate. It can be compared via PartialEq, however any contained IO errors will only be compared on their ErrorKind.
ErrorCode
ErrorCode is an XDR Enum defined as:
ExtendFootprintTtlResult
ExtendFootprintTtlResult is an XDR Union defined as:
ExtendFootprintTtlResultCode
ExtendFootprintTtlResultCode is an XDR Enum defined as:
ExtensionPoint
ExtensionPoint is an XDR Union defined as:
FeeBumpTransactionExt
FeeBumpTransactionExt is an XDR NestedUnion defined as:
FeeBumpTransactionInnerTx
FeeBumpTransactionInnerTx is an XDR NestedUnion defined as:
GeneralizedTransactionSet
GeneralizedTransactionSet is an XDR Union defined as:
HashIdPreimage
HashIdPreimage is an XDR Union defined as:
HostFunction
HostFunction is an XDR Union defined as:
HostFunctionType
HostFunctionType is an XDR Enum defined as:
HotArchiveBucketEntry
HotArchiveBucketEntry is an XDR Union defined as:
HotArchiveBucketEntryType
HotArchiveBucketEntryType is an XDR Enum defined as:
InflationResult
InflationResult is an XDR Union defined as:
InflationResultCode
InflationResultCode is an XDR Enum defined as:
InnerTransactionResultExt
InnerTransactionResultExt is an XDR NestedUnion defined as:
InnerTransactionResultResult
InnerTransactionResultResult is an XDR NestedUnion defined as:
InvokeHostFunctionResult
InvokeHostFunctionResult is an XDR Union defined as:
InvokeHostFunctionResultCode
InvokeHostFunctionResultCode is an XDR Enum defined as:
IpAddrType
IpAddrType is an XDR Enum defined as:
LedgerCloseMeta
LedgerCloseMeta is an XDR Union defined as:
LedgerCloseMetaExt
LedgerCloseMetaExt is an XDR Union defined as:
LedgerEntryChange
LedgerEntryChange is an XDR Union defined as:
LedgerEntryChangeType
LedgerEntryChangeType is an XDR Enum defined as:
LedgerEntryData
LedgerEntryData is an XDR NestedUnion defined as:
LedgerEntryExt
LedgerEntryExt is an XDR NestedUnion defined as:
LedgerEntryExtensionV1Ext
LedgerEntryExtensionV1Ext is an XDR NestedUnion defined as:
LedgerEntryType
LedgerEntryType is an XDR Enum defined as:
LedgerHeaderExt
LedgerHeaderExt is an XDR NestedUnion defined as:
LedgerHeaderExtensionV1Ext
LedgerHeaderExtensionV1Ext is an XDR NestedUnion defined as:
LedgerHeaderFlags
LedgerHeaderFlags is an XDR Enum defined as:
LedgerHeaderHistoryEntryExt
LedgerHeaderHistoryEntryExt is an XDR NestedUnion defined as:
LedgerKey
LedgerKey is an XDR Union defined as:
LedgerUpgrade
LedgerUpgrade is an XDR Union defined as:
LedgerUpgradeType
LedgerUpgradeType is an XDR Enum defined as:
LiquidityPoolDepositResult
LiquidityPoolDepositResult is an XDR Union defined as:
LiquidityPoolDepositResultCode
LiquidityPoolDepositResultCode is an XDR Enum defined as:
LiquidityPoolEntryBody
LiquidityPoolEntryBody is an XDR NestedUnion defined as:
LiquidityPoolParameters
LiquidityPoolParameters is an XDR Union defined as:
LiquidityPoolType
LiquidityPoolType is an XDR Enum defined as:
LiquidityPoolWithdrawResult
LiquidityPoolWithdrawResult is an XDR Union defined as:
LiquidityPoolWithdrawResultCode
LiquidityPoolWithdrawResultCode is an XDR Enum defined as:
ManageBuyOfferResult
ManageBuyOfferResult is an XDR Union defined as:
ManageBuyOfferResultCode
ManageBuyOfferResultCode is an XDR Enum defined as:
ManageDataResult
ManageDataResult is an XDR Union defined as:
ManageDataResultCode
ManageDataResultCode is an XDR Enum defined as:
ManageOfferEffect
ManageOfferEffect is an XDR Enum defined as:
ManageOfferSuccessResultOffer
ManageOfferSuccessResultOffer is an XDR NestedUnion defined as:
ManageSellOfferResult
ManageSellOfferResult is an XDR Union defined as:
ManageSellOfferResultCode
ManageSellOfferResultCode is an XDR Enum defined as:
Memo
Memo is an XDR Union defined as:
MemoType
MemoType is an XDR Enum defined as:
MessageType
MessageType is an XDR Enum defined as:
MuxedAccount
MuxedAccount is an XDR Union defined as:
OfferEntryExt
OfferEntryExt is an XDR NestedUnion defined as:
OfferEntryFlags
OfferEntryFlags is an XDR Enum defined as:
OperationBody
OperationBody is an XDR NestedUnion defined as:
OperationResult
OperationResult is an XDR Union defined as:
OperationResultCode
OperationResultCode is an XDR Enum defined as:
OperationResultTr
OperationResultTr is an XDR NestedUnion defined as:
OperationType
OperationType is an XDR Enum defined as:
PathPaymentStrictReceiveResult
PathPaymentStrictReceiveResult is an XDR Union defined as:
PathPaymentStrictReceiveResultCode
PathPaymentStrictReceiveResultCode is an XDR Enum defined as:
PathPaymentStrictSendResult
PathPaymentStrictSendResult is an XDR Union defined as:
PathPaymentStrictSendResultCode
PathPaymentStrictSendResultCode is an XDR Enum defined as:
PaymentResult
PaymentResult is an XDR Union defined as:
PaymentResultCode
PaymentResultCode is an XDR Enum defined as:
PeerAddressIp
PeerAddressIp is an XDR NestedUnion defined as:
PersistedScpState
PersistedScpState is an XDR Union defined as:
PreconditionType
PreconditionType is an XDR Enum defined as:
Preconditions
Preconditions is an XDR Union defined as:
PublicKey
PublicKey is an XDR Union defined as:
PublicKeyType
PublicKeyType is an XDR Enum defined as:
RestoreFootprintResult
RestoreFootprintResult is an XDR Union defined as:
RestoreFootprintResultCode
RestoreFootprintResultCode is an XDR Enum defined as:
RevokeSponsorshipOp
RevokeSponsorshipOp is an XDR Union defined as:
RevokeSponsorshipResult
RevokeSponsorshipResult is an XDR Union defined as:
RevokeSponsorshipResultCode
RevokeSponsorshipResultCode is an XDR Enum defined as:
RevokeSponsorshipType
RevokeSponsorshipType is an XDR Enum defined as:
ScAddress
ScAddress is an XDR Union defined as:
ScAddressType
ScAddressType is an XDR Enum defined as:
ScEnvMetaEntry
ScEnvMetaEntry is an XDR Union defined as:
ScEnvMetaKind
ScEnvMetaKind is an XDR Enum defined as:
ScError
ScError is an XDR Union defined as:
ScErrorCode
ScErrorCode is an XDR Enum defined as:
ScErrorType
ScErrorType is an XDR Enum defined as:
ScMetaEntry
ScMetaEntry is an XDR Union defined as:
ScMetaKind
ScMetaKind is an XDR Enum defined as:
ScSpecEntry
ScSpecEntry is an XDR Union defined as:
ScSpecEntryKind
ScSpecEntryKind is an XDR Enum defined as:
ScSpecEventDataFormat
ScSpecEventDataFormat is an XDR Enum defined as:
ScSpecEventParamLocationV0
ScSpecEventParamLocationV0 is an XDR Enum defined as:
ScSpecType
ScSpecType is an XDR Enum defined as:
ScSpecTypeDef
ScSpecTypeDef is an XDR Union defined as:
ScSpecUdtUnionCaseV0
ScSpecUdtUnionCaseV0 is an XDR Union defined as:
ScSpecUdtUnionCaseV0Kind
ScSpecUdtUnionCaseV0Kind is an XDR Enum defined as:
ScVal
ScVal is an XDR Union defined as:
ScValType
ScValType is an XDR Enum defined as:
ScpHistoryEntry
ScpHistoryEntry is an XDR Union defined as:
ScpStatementPledges
ScpStatementPledges is an XDR NestedUnion defined as:
ScpStatementType
ScpStatementType is an XDR Enum defined as:
SetOptionsResult
SetOptionsResult is an XDR Union defined as:
SetOptionsResultCode
SetOptionsResultCode is an XDR Enum defined as:
SetTrustLineFlagsResult
SetTrustLineFlagsResult is an XDR Union defined as:
SetTrustLineFlagsResultCode
SetTrustLineFlagsResultCode is an XDR Enum defined as:
SignerKey
SignerKey is an XDR Union defined as:
SignerKeyType
SignerKeyType is an XDR Enum defined as:
SorobanAuthorizedFunction
SorobanAuthorizedFunction is an XDR Union defined as:
SorobanAuthorizedFunctionType
SorobanAuthorizedFunctionType is an XDR Enum defined as:
SorobanCredentials
SorobanCredentials is an XDR Union defined as:
SorobanCredentialsType
SorobanCredentialsType is an XDR Enum defined as:
SorobanTransactionDataExt
SorobanTransactionDataExt is an XDR NestedUnion defined as:
SorobanTransactionMetaExt
SorobanTransactionMetaExt is an XDR Union defined as:
StellarMessage
StellarMessage is an XDR Union defined as:
StellarValueExt
StellarValueExt is an XDR NestedUnion defined as:
StellarValueType
StellarValueType is an XDR Enum defined as:
StoredTransactionSet
StoredTransactionSet is an XDR Union defined as:
SurveyMessageCommandType
SurveyMessageCommandType is an XDR Enum defined as:
SurveyMessageResponseType
SurveyMessageResponseType is an XDR Enum defined as:
SurveyResponseBody
SurveyResponseBody is an XDR Union defined as:
ThresholdIndexes
ThresholdIndexes is an XDR Enum defined as:
TransactionEnvelope
TransactionEnvelope is an XDR Union defined as:
TransactionEventStage
TransactionEventStage is an XDR Enum defined as:
TransactionExt
TransactionExt is an XDR NestedUnion defined as:
TransactionHistoryEntryExt
TransactionHistoryEntryExt is an XDR NestedUnion defined as:
TransactionHistoryResultEntryExt
TransactionHistoryResultEntryExt is an XDR NestedUnion defined as:
TransactionMeta
TransactionMeta is an XDR Union defined as:
TransactionPhase
TransactionPhase is an XDR Union defined as:
TransactionResultCode
TransactionResultCode is an XDR Enum defined as:
TransactionResultExt
TransactionResultExt is an XDR NestedUnion defined as:
TransactionResultResult
TransactionResultResult is an XDR NestedUnion defined as:
TransactionSignaturePayloadTaggedTransaction
TransactionSignaturePayloadTaggedTransaction is an XDR NestedUnion defined as:
TransactionV0Ext
TransactionV0Ext is an XDR NestedUnion defined as:
TrustLineAsset
TrustLineAsset is an XDR Union defined as:
TrustLineEntryExt
TrustLineEntryExt is an XDR NestedUnion defined as:
TrustLineEntryExtensionV2Ext
TrustLineEntryExtensionV2Ext is an XDR NestedUnion defined as:
TrustLineEntryV1Ext
TrustLineEntryV1Ext is an XDR NestedUnion defined as:
TrustLineFlags
TrustLineFlags is an XDR Enum defined as:
TxSetComponent
TxSetComponent is an XDR Union defined as:
TxSetComponentType
TxSetComponentType is an XDR Enum defined as:
Typetype_enum
TypeVarianttype_enum

Constants§

AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTED
AuthMsgFlagFlowControlBytesRequested is an XDR Const defined as:
CONTRACT_COST_COUNT_LIMIT
ContractCostCountLimit is an XDR Const defined as:
LIQUIDITY_POOL_FEE_V18
LiquidityPoolFeeV18 is an XDR Const defined as:
MASK_ACCOUNT_FLAGS
MaskAccountFlags is an XDR Const defined as:
MASK_ACCOUNT_FLAGS_V17
MaskAccountFlagsV17 is an XDR Const defined as:
MASK_CLAIMABLE_BALANCE_FLAGS
MaskClaimableBalanceFlags is an XDR Const defined as:
MASK_LEDGER_HEADER_FLAGS
MaskLedgerHeaderFlags is an XDR Const defined as:
MASK_OFFERENTRY_FLAGS
MaskOfferentryFlags is an XDR Const defined as:
MASK_TRUSTLINE_FLAGS
MaskTrustlineFlags is an XDR Const defined as:
MASK_TRUSTLINE_FLAGS_V13
MaskTrustlineFlagsV13 is an XDR Const defined as:
MASK_TRUSTLINE_FLAGS_V17
MaskTrustlineFlagsV17 is an XDR Const defined as:
MAX_OPS_PER_TX
MaxOpsPerTx is an XDR Const defined as:
MAX_SIGNERS
MaxSigners is an XDR Const defined as:
SCSYMBOL_LIMIT
ScsymbolLimit is an XDR Const defined as:
SC_SPEC_DOC_LIMIT
ScSpecDocLimit is an XDR Const defined as:
TX_ADVERT_VECTOR_MAX_SIZE
TxAdvertVectorMaxSize is an XDR Const defined as:
TX_DEMAND_VECTOR_MAX_SIZE
TxDemandVectorMaxSize is an XDR Const defined as:
VERSION
XDR_FILES_SHA256
XDR_FILES_SHA256 is a list of pairs of source files and their SHA256 hashes.

Traits§

Discriminant
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.
Enum
Name
Name defines types that assign a static name to their value, such as the name given to an identifier in an XDR enum, or the name given to the case in a union.
ReadXdr
Union
Validate
Variants
Iter defines types that have variants that can be iterated.
WriteXdr

Type Aliases§

Int32
Int32 is an XDR Typedef defined as:
Int64
Int64 is an XDR Typedef defined as:
Uint32
Uint32 is an XDR Typedef defined as:
Uint64
Uint64 is an XDR Typedef defined as: