Expand description
Convert values to and from Bytes.
All types that are convertible to and from Val implement the ToXdr and FromXdr traits, and serialize to the ScVal XDR form.
§Examples
use soroban_sdk::{
xdr::{FromXdr, ToXdr},
Env, Bytes, IntoVal, TryFromVal,
};
let env = Env::default();
let value: u32 = 5;
let bytes = value.to_xdr(&env);
assert_eq!(bytes.len(), 8);
let roundtrip = u32::from_xdr(&env, &bytes);
assert_eq!(roundtrip, Ok(value));
Modules§
Structs§
- Account
Entry - AccountEntry is an XDR Struct defines as:
- Account
Entry Extension V1 - AccountEntryExtensionV1 is an XDR Struct defines as:
- Account
Entry Extension V2 - AccountEntryExtensionV2 is an XDR Struct defines as:
- Account
Entry Extension V3 - AccountEntryExtensionV3 is an XDR Struct defines as:
- Account
Id - AccountId is an XDR Typedef defines as:
- Allow
Trust Op - AllowTrustOp is an XDR Struct defines as:
- Alpha
Num4 - AlphaNum4 is an XDR Struct defines as:
- Alpha
Num12 - AlphaNum12 is an XDR Struct defines as:
- Archival
Proof - ArchivalProof is an XDR Struct defines as:
- Archival
Proof Node - ArchivalProofNode is an XDR Struct defines as:
- Asset
Code4 - AssetCode4 is an XDR Typedef defines as:
- Asset
Code12 - AssetCode12 is an XDR Typedef defines as:
- Auth
- Auth is an XDR Struct defines as:
- Auth
Cert - AuthCert is an XDR Struct defines as:
- Authenticated
Message V0 - AuthenticatedMessageV0 is an XDR NestedStruct defines as:
- Begin
Sponsoring Future Reserves Op - BeginSponsoringFutureReservesOp is an XDR Struct defines as:
- Bucket
Metadata - BucketMetadata is an XDR Struct defines as:
- Bump
Sequence Op - BumpSequenceOp is an XDR Struct defines as:
- BytesM
- Change
Trust Op - ChangeTrustOp is an XDR Struct defines as:
- Claim
Claimable Balance Op - ClaimClaimableBalanceOp is an XDR Struct defines as:
- Claim
Liquidity Atom - ClaimLiquidityAtom is an XDR Struct defines as:
- Claim
Offer Atom - ClaimOfferAtom is an XDR Struct defines as:
- Claim
Offer Atom V0 - ClaimOfferAtomV0 is an XDR Struct defines as:
- Claimable
Balance Entry - ClaimableBalanceEntry is an XDR Struct defines as:
- Claimable
Balance Entry Extension V1 - ClaimableBalanceEntryExtensionV1 is an XDR Struct defines as:
- Claimant
V0 - ClaimantV0 is an XDR NestedStruct defines as:
- Clawback
Claimable Balance Op - ClawbackClaimableBalanceOp is an XDR Struct defines as:
- Clawback
Op - ClawbackOp is an XDR Struct defines as:
- Cold
Archive Archived Leaf - ColdArchiveArchivedLeaf is an XDR Struct defines as:
- Cold
Archive Boundary Leaf - ColdArchiveBoundaryLeaf is an XDR Struct defines as:
- Cold
Archive Deleted Leaf - ColdArchiveDeletedLeaf is an XDR Struct defines as:
- Cold
Archive Hash Entry - ColdArchiveHashEntry is an XDR Struct defines as:
- Config
Setting Contract Bandwidth V0 - ConfigSettingContractBandwidthV0 is an XDR Struct defines as:
- Config
Setting Contract Compute V0 - ConfigSettingContractComputeV0 is an XDR Struct defines as:
- Config
Setting Contract Events V0 - ConfigSettingContractEventsV0 is an XDR Struct defines as:
- Config
Setting Contract Execution Lanes V0 - ConfigSettingContractExecutionLanesV0 is an XDR Struct defines as:
- Config
Setting Contract Historical Data V0 - ConfigSettingContractHistoricalDataV0 is an XDR Struct defines as:
- Config
Setting Contract Ledger Cost V0 - ConfigSettingContractLedgerCostV0 is an XDR Struct defines as:
- Config
Upgrade Set - ConfigUpgradeSet is an XDR Struct defines as:
- Config
Upgrade SetKey - ConfigUpgradeSetKey is an XDR Struct defines as:
- Contract
Code Cost Inputs - ContractCodeCostInputs is an XDR Struct defines as:
- Contract
Code Entry - ContractCodeEntry is an XDR Struct defines as:
- Contract
Code Entry V1 - ContractCodeEntryV1 is an XDR NestedStruct defines as:
- Contract
Cost Param Entry - ContractCostParamEntry is an XDR Struct defines as:
- Contract
Cost Params - ContractCostParams is an XDR Typedef defines as:
- Contract
Data Entry - ContractDataEntry is an XDR Struct defines as:
- Contract
Event - ContractEvent is an XDR Struct defines as:
- Contract
Event V0 - ContractEventV0 is an XDR NestedStruct defines as:
- Contract
IdPreimage From Address - ContractIdPreimageFromAddress is an XDR NestedStruct defines as:
- Create
Account Op - CreateAccountOp is an XDR Struct defines as:
- Create
Claimable Balance Op - CreateClaimableBalanceOp is an XDR Struct defines as:
- Create
Contract Args - CreateContractArgs is an XDR Struct defines as:
- Create
Contract Args V2 - CreateContractArgsV2 is an XDR Struct defines as:
- Create
Passive Sell Offer Op - CreatePassiveSellOfferOp is an XDR Struct defines as:
- Curve25519
Public - Curve25519Public is an XDR Struct defines as:
- Curve25519
Secret - Curve25519Secret is an XDR Struct defines as:
- Data
Entry - DataEntry is an XDR Struct defines as:
- Data
Value - DataValue is an XDR Typedef defines as:
- Decorated
Signature - DecoratedSignature is an XDR Struct defines as:
- Diagnostic
Event - DiagnosticEvent is an XDR Struct defines as:
- Diagnostic
Events - DiagnosticEvents is an XDR Typedef defines as:
- Dont
Have - DontHave is an XDR Struct defines as:
- Duration
- Duration is an XDR Typedef defines as:
- Encrypted
Body - EncryptedBody is an XDR Typedef defines as:
- Eviction
Iterator - EvictionIterator is an XDR Struct defines as:
- Existence
Proof Body - ExistenceProofBody is an XDR Struct defines as:
- Extend
Footprint TtlOp - ExtendFootprintTtlOp is an XDR Struct defines as:
- FeeBump
Transaction - FeeBumpTransaction is an XDR Struct defines as:
- FeeBump
Transaction Envelope - FeeBumpTransactionEnvelope is an XDR Struct defines as:
- Flood
Advert - FloodAdvert is an XDR Struct defines as:
- Flood
Demand - FloodDemand is an XDR Struct defines as:
- Frame
- Hash
- Hash is an XDR Typedef defines as:
- Hash
IdPreimage Contract Id - HashIdPreimageContractId is an XDR NestedStruct defines as:
- Hash
IdPreimage Operation Id - HashIdPreimageOperationId is an XDR NestedStruct defines as:
- Hash
IdPreimage Revoke Id - HashIdPreimageRevokeId is an XDR NestedStruct defines as:
- Hash
IdPreimage Soroban Authorization - HashIdPreimageSorobanAuthorization is an XDR NestedStruct defines as:
- Hello
- Hello is an XDR Struct defines as:
- Hmac
Sha256 Key - HmacSha256Key is an XDR Struct defines as:
- Hmac
Sha256 Mac - HmacSha256Mac is an XDR Struct defines as:
- Inflation
Payout - InflationPayout is an XDR Struct defines as:
- Inner
Transaction Result - InnerTransactionResult is an XDR Struct defines as:
- Inner
Transaction Result Pair - InnerTransactionResultPair is an XDR Struct defines as:
- Int128
Parts - Int128Parts is an XDR Struct defines as:
- Int256
Parts - Int256Parts is an XDR Struct defines as:
- Invoke
Contract Args - InvokeContractArgs is an XDR Struct defines as:
- Invoke
Host Function Op - InvokeHostFunctionOp is an XDR Struct defines as:
- Invoke
Host Function Success PreImage - InvokeHostFunctionSuccessPreImage is an XDR Struct defines as:
- Ledger
Bounds - LedgerBounds is an XDR Struct defines as:
- Ledger
Close Meta ExtV1 - LedgerCloseMetaExtV1 is an XDR Struct defines as:
- Ledger
Close Meta V0 - LedgerCloseMetaV0 is an XDR Struct defines as:
- Ledger
Close Meta V1 - LedgerCloseMetaV1 is an XDR Struct defines as:
- Ledger
Close Value Signature - LedgerCloseValueSignature is an XDR Struct defines as:
- Ledger
Entry - LedgerEntry is an XDR Struct defines as:
- Ledger
Entry Changes - LedgerEntryChanges is an XDR Typedef defines as:
- Ledger
Entry Extension V1 - LedgerEntryExtensionV1 is an XDR Struct defines as:
- Ledger
Footprint - LedgerFootprint is an XDR Struct defines as:
- Ledger
Header - LedgerHeader is an XDR Struct defines as:
- Ledger
Header Extension V1 - LedgerHeaderExtensionV1 is an XDR Struct defines as:
- Ledger
Header History Entry - LedgerHeaderHistoryEntry is an XDR Struct defines as:
- Ledger
KeyAccount - LedgerKeyAccount is an XDR NestedStruct defines as:
- Ledger
KeyClaimable Balance - LedgerKeyClaimableBalance is an XDR NestedStruct defines as:
- Ledger
KeyConfig Setting - LedgerKeyConfigSetting is an XDR NestedStruct defines as:
- Ledger
KeyContract Code - LedgerKeyContractCode is an XDR NestedStruct defines as:
- Ledger
KeyContract Data - LedgerKeyContractData is an XDR NestedStruct defines as:
- Ledger
KeyData - LedgerKeyData is an XDR NestedStruct defines as:
- Ledger
KeyLiquidity Pool - LedgerKeyLiquidityPool is an XDR NestedStruct defines as:
- Ledger
KeyOffer - LedgerKeyOffer is an XDR NestedStruct defines as:
- Ledger
KeyTrust Line - LedgerKeyTrustLine is an XDR NestedStruct defines as:
- Ledger
KeyTtl - LedgerKeyTtl is an XDR NestedStruct defines as:
- Ledger
ScpMessages - LedgerScpMessages is an XDR Struct defines as:
- Liabilities
- Liabilities is an XDR Struct defines as:
- Limited
Limited
wraps an object and provides functions for enforcing limits.- Limits
Limits
contains the limits that a limited reader or writer will be constrained to.- Liquidity
Pool Constant Product Parameters - LiquidityPoolConstantProductParameters is an XDR Struct defines as:
- Liquidity
Pool Deposit Op - LiquidityPoolDepositOp is an XDR Struct defines as:
- Liquidity
Pool Entry - LiquidityPoolEntry is an XDR Struct defines as:
- Liquidity
Pool Entry Constant Product - LiquidityPoolEntryConstantProduct is an XDR NestedStruct defines as:
- Liquidity
Pool Withdraw Op - LiquidityPoolWithdrawOp is an XDR Struct defines as:
- Manage
BuyOffer Op - ManageBuyOfferOp is an XDR Struct defines as:
- Manage
Data Op - ManageDataOp is an XDR Struct defines as:
- Manage
Offer Success Result - ManageOfferSuccessResult is an XDR Struct defines as:
- Manage
Sell Offer Op - ManageSellOfferOp is an XDR Struct defines as:
- Muxed
Account Med25519 - MuxedAccountMed25519 is an XDR NestedStruct defines as:
- NodeId
- NodeId is an XDR Typedef defines as:
- Nonexistence
Proof Body - NonexistenceProofBody is an XDR Struct defines as:
- Offer
Entry - OfferEntry is an XDR Struct defines as:
- Operation
- Operation is an XDR Struct defines as:
- Operation
Meta - OperationMeta is an XDR Struct defines as:
- Path
Payment Strict Receive Op - PathPaymentStrictReceiveOp is an XDR Struct defines as:
- Path
Payment Strict Receive Result Success - PathPaymentStrictReceiveResultSuccess is an XDR NestedStruct defines as:
- Path
Payment Strict Send Op - PathPaymentStrictSendOp is an XDR Struct defines as:
- Path
Payment Strict Send Result Success - PathPaymentStrictSendResultSuccess is an XDR NestedStruct defines as:
- Payment
Op - PaymentOp is an XDR Struct defines as:
- Peer
Address - PeerAddress is an XDR Struct defines as:
- Peer
Stat List - PeerStatList is an XDR Typedef defines as:
- Peer
Stats - PeerStats is an XDR Struct defines as:
- Persisted
ScpState V0 - PersistedScpStateV0 is an XDR Struct defines as:
- Persisted
ScpState V1 - PersistedScpStateV1 is an XDR Struct defines as:
- PoolId
- PoolId is an XDR Typedef defines as:
- Preconditions
V2 - PreconditionsV2 is an XDR Struct defines as:
- Price
- Price is an XDR Struct defines as:
- Proof
Level - ProofLevel is an XDR Typedef defines as:
- Read
XdrIter - Restore
Footprint Op - RestoreFootprintOp is an XDR Struct defines as:
- Revoke
Sponsorship OpSigner - RevokeSponsorshipOpSigner is an XDR NestedStruct defines as:
- SError
- SError is an XDR Struct defines as:
- ScBytes
- ScBytes is an XDR Typedef defines as:
- ScContract
Instance - ScContractInstance is an XDR Struct defines as:
- ScEnv
Meta Entry Interface Version - ScEnvMetaEntryInterfaceVersion is an XDR NestedStruct defines as:
- ScMap
- ScMap is an XDR Typedef defines as:
- ScMap
Entry - ScMapEntry is an XDR Struct defines as:
- ScMeta
V0 - ScMetaV0 is an XDR Struct defines as:
- ScNonce
Key - ScNonceKey is an XDR Struct defines as:
- ScSpec
Function Input V0 - ScSpecFunctionInputV0 is an XDR Struct defines as:
- ScSpec
Function V0 - ScSpecFunctionV0 is an XDR Struct defines as:
- ScSpec
Type BytesN - ScSpecTypeBytesN is an XDR Struct defines as:
- ScSpec
Type Map - ScSpecTypeMap is an XDR Struct defines as:
- ScSpec
Type Option - ScSpecTypeOption is an XDR Struct defines as:
- ScSpec
Type Result - ScSpecTypeResult is an XDR Struct defines as:
- ScSpec
Type Tuple - ScSpecTypeTuple is an XDR Struct defines as:
- ScSpec
Type Udt - ScSpecTypeUdt is an XDR Struct defines as:
- ScSpec
Type Vec - ScSpecTypeVec is an XDR Struct defines as:
- ScSpec
UdtEnum Case V0 - ScSpecUdtEnumCaseV0 is an XDR Struct defines as:
- ScSpec
UdtEnum V0 - ScSpecUdtEnumV0 is an XDR Struct defines as:
- ScSpec
UdtError Enum Case V0 - ScSpecUdtErrorEnumCaseV0 is an XDR Struct defines as:
- ScSpec
UdtError Enum V0 - ScSpecUdtErrorEnumV0 is an XDR Struct defines as:
- ScSpec
UdtStruct Field V0 - ScSpecUdtStructFieldV0 is an XDR Struct defines as:
- ScSpec
UdtStruct V0 - ScSpecUdtStructV0 is an XDR Struct defines as:
- ScSpec
UdtUnion Case Tuple V0 - ScSpecUdtUnionCaseTupleV0 is an XDR Struct defines as:
- ScSpec
UdtUnion Case Void V0 - ScSpecUdtUnionCaseVoidV0 is an XDR Struct defines as:
- ScSpec
UdtUnion V0 - ScSpecUdtUnionV0 is an XDR Struct defines as:
- ScString
- ScString is an XDR Typedef defines as:
- ScSymbol
- ScSymbol is an XDR Typedef defines as:
- ScVec
- ScVec is an XDR Typedef defines as:
- ScpBallot
- ScpBallot is an XDR Struct defines as:
- ScpEnvelope
- ScpEnvelope is an XDR Struct defines as:
- ScpHistory
Entry V0 - ScpHistoryEntryV0 is an XDR Struct defines as:
- ScpNomination
- ScpNomination is an XDR Struct defines as:
- ScpQuorum
Set - ScpQuorumSet is an XDR Struct defines as:
- ScpStatement
- ScpStatement is an XDR Struct defines as:
- ScpStatement
Confirm - ScpStatementConfirm is an XDR NestedStruct defines as:
- ScpStatement
Externalize - ScpStatementExternalize is an XDR NestedStruct defines as:
- ScpStatement
Prepare - ScpStatementPrepare is an XDR NestedStruct defines as:
- Send
More - SendMore is an XDR Struct defines as:
- Send
More Extended - SendMoreExtended is an XDR Struct defines as:
- Sequence
Number - SequenceNumber is an XDR Typedef defines as:
- Serialized
Binary Fuse Filter - SerializedBinaryFuseFilter is an XDR Struct defines as:
- SetOptions
Op - SetOptionsOp is an XDR Struct defines as:
- SetTrust
Line Flags Op - SetTrustLineFlagsOp is an XDR Struct defines as:
- Short
Hash Seed - ShortHashSeed is an XDR Struct defines as:
- Signature
- Signature is an XDR Typedef defines as:
- Signature
Hint - SignatureHint is an XDR Typedef defines as:
- Signed
Survey Request Message - SignedSurveyRequestMessage is an XDR Struct defines as:
- Signed
Survey Response Message - SignedSurveyResponseMessage is an XDR Struct defines as:
- Signed
Time Sliced Survey Request Message - SignedTimeSlicedSurveyRequestMessage is an XDR Struct defines as:
- Signed
Time Sliced Survey Response Message - SignedTimeSlicedSurveyResponseMessage is an XDR Struct defines as:
- Signed
Time Sliced Survey Start Collecting Message - SignedTimeSlicedSurveyStartCollectingMessage is an XDR Struct defines as:
- Signed
Time Sliced Survey Stop Collecting Message - SignedTimeSlicedSurveyStopCollectingMessage is an XDR Struct defines as:
- Signer
- Signer is an XDR Struct defines as:
- Signer
KeyEd25519 Signed Payload - SignerKeyEd25519SignedPayload is an XDR NestedStruct defines as:
- Simple
Payment Result - SimplePaymentResult is an XDR Struct defines as:
- Soroban
Address Credentials - SorobanAddressCredentials is an XDR Struct defines as:
- Soroban
Authorization Entry - SorobanAuthorizationEntry is an XDR Struct defines as:
- Soroban
Authorized Invocation - SorobanAuthorizedInvocation is an XDR Struct defines as:
- Soroban
Resources - SorobanResources is an XDR Struct defines as:
- Soroban
Transaction Data - SorobanTransactionData is an XDR Struct defines as:
- Soroban
Transaction Meta - SorobanTransactionMeta is an XDR Struct defines as:
- Soroban
Transaction Meta ExtV1 - SorobanTransactionMetaExtV1 is an XDR Struct defines as:
- Sponsorship
Descriptor - SponsorshipDescriptor is an XDR Typedef defines as:
- State
Archival Settings - StateArchivalSettings is an XDR Struct defines as:
- Stellar
Value - StellarValue is an XDR Struct defines as:
- Stored
Debug Transaction Set - StoredDebugTransactionSet is an XDR Struct defines as:
- String32
- String32 is an XDR Typedef defines as:
- String64
- String64 is an XDR Typedef defines as:
- StringM
- A string type that contains arbitrary bytes.
- Survey
Request Message - SurveyRequestMessage is an XDR Struct defines as:
- Survey
Response Message - SurveyResponseMessage is an XDR Struct defines as:
- Thresholds
- Thresholds is an XDR Typedef defines as:
- Time
Bounds - TimeBounds is an XDR Struct defines as:
- Time
Point - TimePoint is an XDR Typedef defines as:
- Time
Sliced Node Data - TimeSlicedNodeData is an XDR Struct defines as:
- Time
Sliced Peer Data - TimeSlicedPeerData is an XDR Struct defines as:
- Time
Sliced Peer Data List - TimeSlicedPeerDataList is an XDR Typedef defines as:
- Time
Sliced Survey Request Message - TimeSlicedSurveyRequestMessage is an XDR Struct defines as:
- Time
Sliced Survey Response Message - TimeSlicedSurveyResponseMessage is an XDR Struct defines as:
- Time
Sliced Survey Start Collecting Message - TimeSlicedSurveyStartCollectingMessage is an XDR Struct defines as:
- Time
Sliced Survey Stop Collecting Message - TimeSlicedSurveyStopCollectingMessage is an XDR Struct defines as:
- Topology
Response Body V0 - TopologyResponseBodyV0 is an XDR Struct defines as:
- Topology
Response Body V1 - TopologyResponseBodyV1 is an XDR Struct defines as:
- Topology
Response Body V2 - TopologyResponseBodyV2 is an XDR Struct defines as:
- Transaction
- Transaction is an XDR Struct defines as:
- Transaction
History Entry - TransactionHistoryEntry is an XDR Struct defines as:
- Transaction
History Result Entry - TransactionHistoryResultEntry is an XDR Struct defines as:
- Transaction
Meta V1 - TransactionMetaV1 is an XDR Struct defines as:
- Transaction
Meta V2 - TransactionMetaV2 is an XDR Struct defines as:
- Transaction
Meta V3 - TransactionMetaV3 is an XDR Struct defines as:
- Transaction
Result - TransactionResult is an XDR Struct defines as:
- Transaction
Result Meta - TransactionResultMeta is an XDR Struct defines as:
- Transaction
Result Pair - TransactionResultPair is an XDR Struct defines as:
- Transaction
Result Set - TransactionResultSet is an XDR Struct defines as:
- Transaction
Set - TransactionSet is an XDR Struct defines as:
- Transaction
SetV1 - TransactionSetV1 is an XDR Struct defines as:
- Transaction
Signature Payload - TransactionSignaturePayload is an XDR Struct defines as:
- Transaction
V0 - TransactionV0 is an XDR Struct defines as:
- Transaction
V0Envelope - TransactionV0Envelope is an XDR Struct defines as:
- Transaction
V1Envelope - TransactionV1Envelope is an XDR Struct defines as:
- Trust
Line Entry - TrustLineEntry is an XDR Struct defines as:
- Trust
Line Entry Extension V2 - TrustLineEntryExtensionV2 is an XDR Struct defines as:
- Trust
Line Entry V1 - TrustLineEntryV1 is an XDR NestedStruct defines as:
- TtlEntry
- TtlEntry is an XDR Struct defines as:
- TxAdvert
Vector - TxAdvertVector is an XDR Typedef defines as:
- TxDemand
Vector - TxDemandVector is an XDR Typedef defines as:
- TxSet
Component TxsMaybe Discounted Fee - TxSetComponentTxsMaybeDiscountedFee is an XDR NestedStruct defines as:
- UInt128
Parts - UInt128Parts is an XDR Struct defines as:
- UInt256
Parts - UInt256Parts is an XDR Struct defines as:
- Uint256
- Uint256 is an XDR Typedef defines as:
- Upgrade
Entry Meta - UpgradeEntryMeta is an XDR Struct defines as:
- Upgrade
Type - UpgradeType is an XDR Typedef defines as:
- Value
- Value is an XDR Typedef defines as:
- VecM
Enums§
- Account
Entry Ext - AccountEntryExt is an XDR NestedUnion defines as:
- Account
Entry Extension V1Ext - AccountEntryExtensionV1Ext is an XDR NestedUnion defines as:
- Account
Entry Extension V2Ext - AccountEntryExtensionV2Ext is an XDR NestedUnion defines as:
- Account
Flags - AccountFlags is an XDR Enum defines as:
- Account
Merge Result - AccountMergeResult is an XDR Union defines as:
- Account
Merge Result Code - AccountMergeResultCode is an XDR Enum defines as:
- Allow
Trust Result - AllowTrustResult is an XDR Union defines as:
- Allow
Trust Result Code - AllowTrustResultCode is an XDR Enum defines as:
- Archival
Proof Body - ArchivalProofBody is an XDR NestedUnion defines as:
- Archival
Proof Type - ArchivalProofType is an XDR Enum defines as:
- Asset
- Asset is an XDR Union defines as:
- Asset
Code - AssetCode is an XDR Union defines as:
- Asset
Type - AssetType is an XDR Enum defines as:
- Authenticated
Message - AuthenticatedMessage is an XDR Union defines as:
- Begin
Sponsoring Future Reserves Result - BeginSponsoringFutureReservesResult is an XDR Union defines as:
- Begin
Sponsoring Future Reserves Result Code - BeginSponsoringFutureReservesResultCode is an XDR Enum defines as:
- Binary
Fuse Filter Type - BinaryFuseFilterType is an XDR Enum defines as:
- Bucket
Entry - BucketEntry is an XDR Union defines as:
- Bucket
Entry Type - BucketEntryType is an XDR Enum defines as:
- Bucket
List Type - BucketListType is an XDR Enum defines as:
- Bucket
Metadata Ext - BucketMetadataExt is an XDR NestedUnion defines as:
- Bump
Sequence Result - BumpSequenceResult is an XDR Union defines as:
- Bump
Sequence Result Code - BumpSequenceResultCode is an XDR Enum defines as:
- Change
Trust Asset - ChangeTrustAsset is an XDR Union defines as:
- Change
Trust Result - ChangeTrustResult is an XDR Union defines as:
- Change
Trust Result Code - ChangeTrustResultCode is an XDR Enum defines as:
- Claim
Atom - ClaimAtom is an XDR Union defines as:
- Claim
Atom Type - ClaimAtomType is an XDR Enum defines as:
- Claim
Claimable Balance Result - ClaimClaimableBalanceResult is an XDR Union defines as:
- Claim
Claimable Balance Result Code - ClaimClaimableBalanceResultCode is an XDR Enum defines as:
- Claim
Predicate - ClaimPredicate is an XDR Union defines as:
- Claim
Predicate Type - ClaimPredicateType is an XDR Enum defines as:
- Claimable
Balance Entry Ext - ClaimableBalanceEntryExt is an XDR NestedUnion defines as:
- Claimable
Balance Entry Extension V1Ext - ClaimableBalanceEntryExtensionV1Ext is an XDR NestedUnion defines as:
- Claimable
Balance Flags - ClaimableBalanceFlags is an XDR Enum defines as:
- Claimable
Balance Id - ClaimableBalanceId is an XDR Union defines as:
- Claimable
Balance IdType - ClaimableBalanceIdType is an XDR Enum defines as:
- Claimant
- Claimant is an XDR Union defines as:
- Claimant
Type - ClaimantType is an XDR Enum defines as:
- Clawback
Claimable Balance Result - ClawbackClaimableBalanceResult is an XDR Union defines as:
- Clawback
Claimable Balance Result Code - ClawbackClaimableBalanceResultCode is an XDR Enum defines as:
- Clawback
Result - ClawbackResult is an XDR Union defines as:
- Clawback
Result Code - ClawbackResultCode is an XDR Enum defines as:
- Cold
Archive Bucket Entry - ColdArchiveBucketEntry is an XDR Union defines as:
- Cold
Archive Bucket Entry Type - ColdArchiveBucketEntryType is an XDR Enum defines as:
- Config
Setting Entry - ConfigSettingEntry is an XDR Union defines as:
- Config
Setting Id - ConfigSettingId is an XDR Enum defines as:
- Contract
Code Entry Ext - ContractCodeEntryExt is an XDR NestedUnion defines as:
- Contract
Cost Type - ContractCostType is an XDR Enum defines as:
- Contract
Data Durability - ContractDataDurability is an XDR Enum defines as:
- Contract
Event Body - ContractEventBody is an XDR NestedUnion defines as:
- Contract
Event Type - ContractEventType is an XDR Enum defines as:
- Contract
Executable - ContractExecutable is an XDR Union defines as:
- Contract
Executable Type - ContractExecutableType is an XDR Enum defines as:
- Contract
IdPreimage - ContractIdPreimage is an XDR Union defines as:
- Contract
IdPreimage Type - ContractIdPreimageType is an XDR Enum defines as:
- Create
Account Result - CreateAccountResult is an XDR Union defines as:
- Create
Account Result Code - CreateAccountResultCode is an XDR Enum defines as:
- Create
Claimable Balance Result - CreateClaimableBalanceResult is an XDR Union defines as:
- Create
Claimable Balance Result Code - CreateClaimableBalanceResultCode is an XDR Enum defines as:
- Crypto
KeyType - CryptoKeyType is an XDR Enum defines as:
- Data
Entry Ext - DataEntryExt is an XDR NestedUnion defines as:
- EndSponsoring
Future Reserves Result - EndSponsoringFutureReservesResult is an XDR Union defines as:
- EndSponsoring
Future Reserves Result Code - EndSponsoringFutureReservesResultCode is an XDR Enum defines as:
- Envelope
Type - EnvelopeType is an XDR Enum defines 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 theirErrorKind
. - Error
Code - ErrorCode is an XDR Enum defines as:
- Extend
Footprint TtlResult - ExtendFootprintTtlResult is an XDR Union defines as:
- Extend
Footprint TtlResult Code - ExtendFootprintTtlResultCode is an XDR Enum defines as:
- Extension
Point - ExtensionPoint is an XDR Union defines as:
- FeeBump
Transaction Ext - FeeBumpTransactionExt is an XDR NestedUnion defines as:
- FeeBump
Transaction Inner Tx - FeeBumpTransactionInnerTx is an XDR NestedUnion defines as:
- Generalized
Transaction Set - GeneralizedTransactionSet is an XDR Union defines as:
- Hash
IdPreimage - HashIdPreimage is an XDR Union defines as:
- Host
Function - HostFunction is an XDR Union defines as:
- Host
Function Type - HostFunctionType is an XDR Enum defines as:
- HotArchive
Bucket Entry - HotArchiveBucketEntry is an XDR Union defines as:
- HotArchive
Bucket Entry Type - HotArchiveBucketEntryType is an XDR Enum defines as:
- Inflation
Result - InflationResult is an XDR Union defines as:
- Inflation
Result Code - InflationResultCode is an XDR Enum defines as:
- Inner
Transaction Result Ext - InnerTransactionResultExt is an XDR NestedUnion defines as:
- Inner
Transaction Result Result - InnerTransactionResultResult is an XDR NestedUnion defines as:
- Invoke
Host Function Result - InvokeHostFunctionResult is an XDR Union defines as:
- Invoke
Host Function Result Code - InvokeHostFunctionResultCode is an XDR Enum defines as:
- IpAddr
Type - IpAddrType is an XDR Enum defines as:
- Ledger
Close Meta - LedgerCloseMeta is an XDR Union defines as:
- Ledger
Close Meta Ext - LedgerCloseMetaExt is an XDR Union defines as:
- Ledger
Entry Change - LedgerEntryChange is an XDR Union defines as:
- Ledger
Entry Change Type - LedgerEntryChangeType is an XDR Enum defines as:
- Ledger
Entry Data - LedgerEntryData is an XDR NestedUnion defines as:
- Ledger
Entry Ext - LedgerEntryExt is an XDR NestedUnion defines as:
- Ledger
Entry Extension V1Ext - LedgerEntryExtensionV1Ext is an XDR NestedUnion defines as:
- Ledger
Entry Type - LedgerEntryType is an XDR Enum defines as:
- Ledger
Header Ext - LedgerHeaderExt is an XDR NestedUnion defines as:
- Ledger
Header Extension V1Ext - LedgerHeaderExtensionV1Ext is an XDR NestedUnion defines as:
- Ledger
Header Flags - LedgerHeaderFlags is an XDR Enum defines as:
- Ledger
Header History Entry Ext - LedgerHeaderHistoryEntryExt is an XDR NestedUnion defines as:
- Ledger
Key - LedgerKey is an XDR Union defines as:
- Ledger
Upgrade - LedgerUpgrade is an XDR Union defines as:
- Ledger
Upgrade Type - LedgerUpgradeType is an XDR Enum defines as:
- Liquidity
Pool Deposit Result - LiquidityPoolDepositResult is an XDR Union defines as:
- Liquidity
Pool Deposit Result Code - LiquidityPoolDepositResultCode is an XDR Enum defines as:
- Liquidity
Pool Entry Body - LiquidityPoolEntryBody is an XDR NestedUnion defines as:
- Liquidity
Pool Parameters - LiquidityPoolParameters is an XDR Union defines as:
- Liquidity
Pool Type - LiquidityPoolType is an XDR Enum defines as:
- Liquidity
Pool Withdraw Result - LiquidityPoolWithdrawResult is an XDR Union defines as:
- Liquidity
Pool Withdraw Result Code - LiquidityPoolWithdrawResultCode is an XDR Enum defines as:
- Manage
BuyOffer Result - ManageBuyOfferResult is an XDR Union defines as:
- Manage
BuyOffer Result Code - ManageBuyOfferResultCode is an XDR Enum defines as:
- Manage
Data Result - ManageDataResult is an XDR Union defines as:
- Manage
Data Result Code - ManageDataResultCode is an XDR Enum defines as:
- Manage
Offer Effect - ManageOfferEffect is an XDR Enum defines as:
- Manage
Offer Success Result Offer - ManageOfferSuccessResultOffer is an XDR NestedUnion defines as:
- Manage
Sell Offer Result - ManageSellOfferResult is an XDR Union defines as:
- Manage
Sell Offer Result Code - ManageSellOfferResultCode is an XDR Enum defines as:
- Memo
- Memo is an XDR Union defines as:
- Memo
Type - MemoType is an XDR Enum defines as:
- Message
Type - MessageType is an XDR Enum defines as:
- Muxed
Account - MuxedAccount is an XDR Union defines as:
- Offer
Entry Ext - OfferEntryExt is an XDR NestedUnion defines as:
- Offer
Entry Flags - OfferEntryFlags is an XDR Enum defines as:
- Operation
Body - OperationBody is an XDR NestedUnion defines as:
- Operation
Result - OperationResult is an XDR Union defines as:
- Operation
Result Code - OperationResultCode is an XDR Enum defines as:
- Operation
Result Tr - OperationResultTr is an XDR NestedUnion defines as:
- Operation
Type - OperationType is an XDR Enum defines as:
- Path
Payment Strict Receive Result - PathPaymentStrictReceiveResult is an XDR Union defines as:
- Path
Payment Strict Receive Result Code - PathPaymentStrictReceiveResultCode is an XDR Enum defines as:
- Path
Payment Strict Send Result - PathPaymentStrictSendResult is an XDR Union defines as:
- Path
Payment Strict Send Result Code - PathPaymentStrictSendResultCode is an XDR Enum defines as:
- Payment
Result - PaymentResult is an XDR Union defines as:
- Payment
Result Code - PaymentResultCode is an XDR Enum defines as:
- Peer
Address Ip - PeerAddressIp is an XDR NestedUnion defines as:
- Persisted
ScpState - PersistedScpState is an XDR Union defines as:
- Precondition
Type - PreconditionType is an XDR Enum defines as:
- Preconditions
- Preconditions is an XDR Union defines as:
- Public
Key - PublicKey is an XDR Union defines as:
- Public
KeyType - PublicKeyType is an XDR Enum defines as:
- Restore
Footprint Result - RestoreFootprintResult is an XDR Union defines as:
- Restore
Footprint Result Code - RestoreFootprintResultCode is an XDR Enum defines as:
- Revoke
Sponsorship Op - RevokeSponsorshipOp is an XDR Union defines as:
- Revoke
Sponsorship Result - RevokeSponsorshipResult is an XDR Union defines as:
- Revoke
Sponsorship Result Code - RevokeSponsorshipResultCode is an XDR Enum defines as:
- Revoke
Sponsorship Type - RevokeSponsorshipType is an XDR Enum defines as:
- ScAddress
- ScAddress is an XDR Union defines as:
- ScAddress
Type - ScAddressType is an XDR Enum defines as:
- ScEnv
Meta Entry - ScEnvMetaEntry is an XDR Union defines as:
- ScEnv
Meta Kind - ScEnvMetaKind is an XDR Enum defines as:
- ScError
- ScError is an XDR Union defines as:
- ScError
Code - ScErrorCode is an XDR Enum defines as:
- ScError
Type - ScErrorType is an XDR Enum defines as:
- ScMeta
Entry - ScMetaEntry is an XDR Union defines as:
- ScMeta
Kind - ScMetaKind is an XDR Enum defines as:
- ScSpec
Entry - ScSpecEntry is an XDR Union defines as:
- ScSpec
Entry Kind - ScSpecEntryKind is an XDR Enum defines as:
- ScSpec
Type - ScSpecType is an XDR Enum defines as:
- ScSpec
Type Def - ScSpecTypeDef is an XDR Union defines as:
- ScSpec
UdtUnion Case V0 - ScSpecUdtUnionCaseV0 is an XDR Union defines as:
- ScSpec
UdtUnion Case V0Kind - ScSpecUdtUnionCaseV0Kind is an XDR Enum defines as:
- ScVal
- ScVal is an XDR Union defines as:
- ScVal
Type - ScValType is an XDR Enum defines as:
- ScpHistory
Entry - ScpHistoryEntry is an XDR Union defines as:
- ScpStatement
Pledges - ScpStatementPledges is an XDR NestedUnion defines as:
- ScpStatement
Type - ScpStatementType is an XDR Enum defines as:
- SetOptions
Result - SetOptionsResult is an XDR Union defines as:
- SetOptions
Result Code - SetOptionsResultCode is an XDR Enum defines as:
- SetTrust
Line Flags Result - SetTrustLineFlagsResult is an XDR Union defines as:
- SetTrust
Line Flags Result Code - SetTrustLineFlagsResultCode is an XDR Enum defines as:
- Signer
Key - SignerKey is an XDR Union defines as:
- Signer
KeyType - SignerKeyType is an XDR Enum defines as:
- Soroban
Authorized Function - SorobanAuthorizedFunction is an XDR Union defines as:
- Soroban
Authorized Function Type - SorobanAuthorizedFunctionType is an XDR Enum defines as:
- Soroban
Credentials - SorobanCredentials is an XDR Union defines as:
- Soroban
Credentials Type - SorobanCredentialsType is an XDR Enum defines as:
- Soroban
Transaction Meta Ext - SorobanTransactionMetaExt is an XDR Union defines as:
- Stellar
Message - StellarMessage is an XDR Union defines as:
- Stellar
Value Ext - StellarValueExt is an XDR NestedUnion defines as:
- Stellar
Value Type - StellarValueType is an XDR Enum defines as:
- Stored
Transaction Set - StoredTransactionSet is an XDR Union defines as:
- Survey
Message Command Type - SurveyMessageCommandType is an XDR Enum defines as:
- Survey
Message Response Type - SurveyMessageResponseType is an XDR Enum defines as:
- Survey
Response Body - SurveyResponseBody is an XDR Union defines as:
- Threshold
Indexes - ThresholdIndexes is an XDR Enum defines as:
- Transaction
Envelope - TransactionEnvelope is an XDR Union defines as:
- Transaction
Ext - TransactionExt is an XDR NestedUnion defines as:
- Transaction
History Entry Ext - TransactionHistoryEntryExt is an XDR NestedUnion defines as:
- Transaction
History Result Entry Ext - TransactionHistoryResultEntryExt is an XDR NestedUnion defines as:
- Transaction
Meta - TransactionMeta is an XDR Union defines as:
- Transaction
Phase - TransactionPhase is an XDR Union defines as:
- Transaction
Result Code - TransactionResultCode is an XDR Enum defines as:
- Transaction
Result Ext - TransactionResultExt is an XDR NestedUnion defines as:
- Transaction
Result Result - TransactionResultResult is an XDR NestedUnion defines as:
- Transaction
Signature Payload Tagged Transaction - TransactionSignaturePayloadTaggedTransaction is an XDR NestedUnion defines as:
- Transaction
V0Ext - TransactionV0Ext is an XDR NestedUnion defines as:
- Trust
Line Asset - TrustLineAsset is an XDR Union defines as:
- Trust
Line Entry Ext - TrustLineEntryExt is an XDR NestedUnion defines as:
- Trust
Line Entry Extension V2Ext - TrustLineEntryExtensionV2Ext is an XDR NestedUnion defines as:
- Trust
Line Entry V1Ext - TrustLineEntryV1Ext is an XDR NestedUnion defines as:
- Trust
Line Flags - TrustLineFlags is an XDR Enum defines as:
- TxSet
Component - TxSetComponent is an XDR Union defines as:
- TxSet
Component Type - TxSetComponentType is an XDR Enum defines as:
- Type
- Type
Variant
Constants§
- AUTH_
MSG_ FLAG_ FLOW_ CONTROL_ BYTES_ REQUESTED - AuthMsgFlagFlowControlBytesRequested is an XDR Const defines as:
- CONTRACT_
COST_ COUNT_ LIMIT - ContractCostCountLimit is an XDR Const defines as:
- LIQUIDITY_
POOL_ FEE_ V18 - LiquidityPoolFeeV18 is an XDR Const defines as:
- MASK_
ACCOUNT_ FLAGS - MaskAccountFlags is an XDR Const defines as:
- MASK_
ACCOUNT_ FLAGS_ V17 - MaskAccountFlagsV17 is an XDR Const defines as:
- MASK_
CLAIMABLE_ BALANCE_ FLAGS - MaskClaimableBalanceFlags is an XDR Const defines as:
- MASK_
LEDGER_ HEADER_ FLAGS - MaskLedgerHeaderFlags is an XDR Const defines as:
- MASK_
OFFERENTRY_ FLAGS - MaskOfferentryFlags is an XDR Const defines as:
- MASK_
TRUSTLINE_ FLAGS - MaskTrustlineFlags is an XDR Const defines as:
- MASK_
TRUSTLINE_ FLAGS_ V13 - MaskTrustlineFlagsV13 is an XDR Const defines as:
- MASK_
TRUSTLINE_ FLAGS_ V17 - MaskTrustlineFlagsV17 is an XDR Const defines as:
- MAX_
OPS_ PER_ TX - MaxOpsPerTx is an XDR Const defines as:
- MAX_
SIGNERS - MaxSigners is an XDR Const defines as:
- SCSYMBOL_
LIMIT - ScsymbolLimit is an XDR Const defines as:
- SC_
SPEC_ DOC_ LIMIT - ScSpecDocLimit is an XDR Const defines as:
- TX_
ADVERT_ VECTOR_ MAX_ SIZE - TxAdvertVectorMaxSize is an XDR Const defines as:
- TX_
DEMAND_ VECTOR_ MAX_ SIZE - TxDemandVectorMaxSize is an XDR Const defines as:
- 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
- FromXdr
- Implemented by types that can be deserialized from Bytes.
- 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
- ToXdr
- Implemented by types that can be serialized to Bytes.
- Union
- Validate
- Variants
- Iter defines types that have variants that can be iterated.
- Write
Xdr