pub trait WriteXdr {
    // Required method
    fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
       where W: Write;

    // Provided methods
    fn to_xdr(&self, limits: Limits) -> Result<Vec<u8>, Error> { ... }
    fn to_xdr_base64(&self, limits: Limits) -> Result<String, Error> { ... }
}

Required Methods§

fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

Provided Methods§

fn to_xdr(&self, limits: Limits) -> Result<Vec<u8>, Error>

fn to_xdr_base64(&self, limits: Limits) -> Result<String, Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl WriteXdr for bool

§

fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

§

impl WriteXdr for f32

§

fn write_xdr<W>(&self, _w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

§

impl WriteXdr for f64

§

fn write_xdr<W>(&self, _w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

§

impl WriteXdr for i32

§

fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

§

impl WriteXdr for i64

§

fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

§

impl WriteXdr for u32

§

fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

§

impl WriteXdr for u64

§

fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

§

impl WriteXdr for ()

§

fn write_xdr<W>(&self, _w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

§

impl<T> WriteXdr for Option<T>
where T: WriteXdr,

§

fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

§

impl<T> WriteXdr for Box<T>
where T: WriteXdr,

§

fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

§

impl<T, const N: usize> WriteXdr for [T; N]
where T: WriteXdr,

§

fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

§

impl<const N: usize> WriteXdr for [u8; N]

§

fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

Implementors§

§

impl WriteXdr for AccountEntryExt

§

impl WriteXdr for AccountEntryExtensionV1Ext

§

impl WriteXdr for AccountEntryExtensionV2Ext

§

impl WriteXdr for AccountFlags

§

impl WriteXdr for AccountMergeResult

§

impl WriteXdr for AccountMergeResultCode

§

impl WriteXdr for AllowTrustResult

§

impl WriteXdr for AllowTrustResultCode

§

impl WriteXdr for Asset

§

impl WriteXdr for AssetCode

§

impl WriteXdr for AssetType

§

impl WriteXdr for AuthenticatedMessage

§

impl WriteXdr for BeginSponsoringFutureReservesResult

§

impl WriteXdr for BeginSponsoringFutureReservesResultCode

§

impl WriteXdr for BucketEntry

§

impl WriteXdr for BucketEntryType

§

impl WriteXdr for BucketMetadataExt

§

impl WriteXdr for BumpSequenceResult

§

impl WriteXdr for BumpSequenceResultCode

§

impl WriteXdr for ChangeTrustAsset

§

impl WriteXdr for ChangeTrustResult

§

impl WriteXdr for ChangeTrustResultCode

§

impl WriteXdr for ClaimAtom

§

impl WriteXdr for ClaimAtomType

§

impl WriteXdr for ClaimClaimableBalanceResult

§

impl WriteXdr for ClaimClaimableBalanceResultCode

§

impl WriteXdr for ClaimPredicate

§

impl WriteXdr for ClaimPredicateType

§

impl WriteXdr for ClaimableBalanceEntryExt

§

impl WriteXdr for ClaimableBalanceEntryExtensionV1Ext

§

impl WriteXdr for ClaimableBalanceFlags

§

impl WriteXdr for ClaimableBalanceId

§

impl WriteXdr for ClaimableBalanceIdType

§

impl WriteXdr for Claimant

§

impl WriteXdr for ClaimantType

§

impl WriteXdr for ClawbackClaimableBalanceResult

§

impl WriteXdr for ClawbackClaimableBalanceResultCode

§

impl WriteXdr for ClawbackResult

§

impl WriteXdr for ClawbackResultCode

§

impl WriteXdr for ConfigSettingEntry

§

impl WriteXdr for ConfigSettingId

§

impl WriteXdr for ContractCostType

§

impl WriteXdr for ContractDataDurability

§

impl WriteXdr for ContractEventBody

§

impl WriteXdr for ContractEventType

§

impl WriteXdr for ContractExecutable

§

impl WriteXdr for ContractExecutableType

§

impl WriteXdr for ContractIdPreimage

§

impl WriteXdr for ContractIdPreimageType

§

impl WriteXdr for CreateAccountResult

§

impl WriteXdr for CreateAccountResultCode

§

impl WriteXdr for CreateClaimableBalanceResult

§

impl WriteXdr for CreateClaimableBalanceResultCode

§

impl WriteXdr for CryptoKeyType

§

impl WriteXdr for DataEntryExt

§

impl WriteXdr for EndSponsoringFutureReservesResult

§

impl WriteXdr for EndSponsoringFutureReservesResultCode

§

impl WriteXdr for EnvelopeType

§

impl WriteXdr for ErrorCode

§

impl WriteXdr for ExtendFootprintTtlResult

§

impl WriteXdr for ExtendFootprintTtlResultCode

§

impl WriteXdr for ExtensionPoint

§

impl WriteXdr for FeeBumpTransactionExt

§

impl WriteXdr for FeeBumpTransactionInnerTx

§

impl WriteXdr for GeneralizedTransactionSet

§

impl WriteXdr for HashIdPreimage

§

impl WriteXdr for HostFunction

§

impl WriteXdr for HostFunctionType

§

impl WriteXdr for InflationResult

§

impl WriteXdr for InflationResultCode

§

impl WriteXdr for InnerTransactionResultExt

§

impl WriteXdr for InnerTransactionResultResult

§

impl WriteXdr for InvokeHostFunctionResult

§

impl WriteXdr for InvokeHostFunctionResultCode

§

impl WriteXdr for IpAddrType

§

impl WriteXdr for LedgerCloseMeta

§

impl WriteXdr for LedgerEntryChange

§

impl WriteXdr for LedgerEntryChangeType

§

impl WriteXdr for LedgerEntryData

§

impl WriteXdr for LedgerEntryExt

§

impl WriteXdr for LedgerEntryExtensionV1Ext

§

impl WriteXdr for LedgerEntryType

§

impl WriteXdr for LedgerHeaderExt

§

impl WriteXdr for LedgerHeaderExtensionV1Ext

§

impl WriteXdr for LedgerHeaderFlags

§

impl WriteXdr for LedgerHeaderHistoryEntryExt

§

impl WriteXdr for LedgerKey

§

impl WriteXdr for LedgerUpgrade

§

impl WriteXdr for LedgerUpgradeType

§

impl WriteXdr for LiquidityPoolDepositResult

§

impl WriteXdr for LiquidityPoolDepositResultCode

§

impl WriteXdr for LiquidityPoolEntryBody

§

impl WriteXdr for LiquidityPoolParameters

§

impl WriteXdr for LiquidityPoolType

§

impl WriteXdr for LiquidityPoolWithdrawResult

§

impl WriteXdr for LiquidityPoolWithdrawResultCode

§

impl WriteXdr for ManageBuyOfferResult

§

impl WriteXdr for ManageBuyOfferResultCode

§

impl WriteXdr for ManageDataResult

§

impl WriteXdr for ManageDataResultCode

§

impl WriteXdr for ManageOfferEffect

§

impl WriteXdr for ManageOfferSuccessResultOffer

§

impl WriteXdr for ManageSellOfferResult

§

impl WriteXdr for ManageSellOfferResultCode

§

impl WriteXdr for Memo

§

impl WriteXdr for MemoType

§

impl WriteXdr for MessageType

§

impl WriteXdr for MuxedAccount

§

impl WriteXdr for OfferEntryExt

§

impl WriteXdr for OfferEntryFlags

§

impl WriteXdr for OperationBody

§

impl WriteXdr for OperationResult

§

impl WriteXdr for OperationResultCode

§

impl WriteXdr for OperationResultTr

§

impl WriteXdr for OperationType

§

impl WriteXdr for PathPaymentStrictReceiveResult

§

impl WriteXdr for PathPaymentStrictReceiveResultCode

§

impl WriteXdr for PathPaymentStrictSendResult

§

impl WriteXdr for PathPaymentStrictSendResultCode

§

impl WriteXdr for PaymentResult

§

impl WriteXdr for PaymentResultCode

§

impl WriteXdr for PeerAddressIp

§

impl WriteXdr for PersistedScpState

§

impl WriteXdr for PreconditionType

§

impl WriteXdr for Preconditions

§

impl WriteXdr for PublicKey

§

impl WriteXdr for PublicKeyType

§

impl WriteXdr for RestoreFootprintResult

§

impl WriteXdr for RestoreFootprintResultCode

§

impl WriteXdr for RevokeSponsorshipOp

§

impl WriteXdr for RevokeSponsorshipResult

§

impl WriteXdr for RevokeSponsorshipResultCode

§

impl WriteXdr for RevokeSponsorshipType

§

impl WriteXdr for ScAddress

§

impl WriteXdr for ScAddressType

§

impl WriteXdr for ScEnvMetaEntry

§

impl WriteXdr for ScEnvMetaKind

§

impl WriteXdr for ScError

§

impl WriteXdr for ScErrorCode

§

impl WriteXdr for ScErrorType

§

impl WriteXdr for ScMetaEntry

§

impl WriteXdr for ScMetaKind

§

impl WriteXdr for ScSpecEntry

§

impl WriteXdr for ScSpecEntryKind

§

impl WriteXdr for ScSpecType

§

impl WriteXdr for ScSpecTypeDef

§

impl WriteXdr for ScSpecUdtUnionCaseV0

§

impl WriteXdr for ScSpecUdtUnionCaseV0Kind

§

impl WriteXdr for ScVal

§

impl WriteXdr for ScValType

§

impl WriteXdr for ScpHistoryEntry

§

impl WriteXdr for ScpStatementPledges

§

impl WriteXdr for ScpStatementType

§

impl WriteXdr for SetOptionsResult

§

impl WriteXdr for SetOptionsResultCode

§

impl WriteXdr for SetTrustLineFlagsResult

§

impl WriteXdr for SetTrustLineFlagsResultCode

§

impl WriteXdr for SignerKey

§

impl WriteXdr for SignerKeyType

§

impl WriteXdr for SorobanAuthorizedFunction

§

impl WriteXdr for SorobanAuthorizedFunctionType

§

impl WriteXdr for SorobanCredentials

§

impl WriteXdr for SorobanCredentialsType

§

impl WriteXdr for StellarMessage

§

impl WriteXdr for StellarValueExt

§

impl WriteXdr for StellarValueType

§

impl WriteXdr for StoredTransactionSet

§

impl WriteXdr for SurveyMessageCommandType

§

impl WriteXdr for SurveyMessageResponseType

§

impl WriteXdr for SurveyResponseBody

§

impl WriteXdr for ThresholdIndexes

§

impl WriteXdr for TransactionEnvelope

§

impl WriteXdr for TransactionExt

§

impl WriteXdr for TransactionHistoryEntryExt

§

impl WriteXdr for TransactionHistoryResultEntryExt

§

impl WriteXdr for TransactionMeta

§

impl WriteXdr for TransactionPhase

§

impl WriteXdr for TransactionResultCode

§

impl WriteXdr for TransactionResultExt

§

impl WriteXdr for TransactionResultResult

§

impl WriteXdr for TransactionSignaturePayloadTaggedTransaction

§

impl WriteXdr for TransactionV0Ext

§

impl WriteXdr for TrustLineAsset

§

impl WriteXdr for TrustLineEntryExt

§

impl WriteXdr for TrustLineEntryExtensionV2Ext

§

impl WriteXdr for TrustLineEntryV1Ext

§

impl WriteXdr for TrustLineFlags

§

impl WriteXdr for TxSetComponent

§

impl WriteXdr for TxSetComponentType

§

impl WriteXdr for Type

§

impl WriteXdr for AccountEntry

§

impl WriteXdr for AccountEntryExtensionV1

§

impl WriteXdr for AccountEntryExtensionV2

§

impl WriteXdr for AccountEntryExtensionV3

§

impl WriteXdr for AccountId

§

impl WriteXdr for AllowTrustOp

§

impl WriteXdr for AlphaNum4

§

impl WriteXdr for AlphaNum12

§

impl WriteXdr for AssetCode4

§

impl WriteXdr for AssetCode12

§

impl WriteXdr for Auth

§

impl WriteXdr for AuthCert

§

impl WriteXdr for AuthenticatedMessageV0

§

impl WriteXdr for BeginSponsoringFutureReservesOp

§

impl WriteXdr for BucketMetadata

§

impl WriteXdr for BumpSequenceOp

§

impl WriteXdr for ChangeTrustOp

§

impl WriteXdr for ClaimClaimableBalanceOp

§

impl WriteXdr for ClaimLiquidityAtom

§

impl WriteXdr for ClaimOfferAtom

§

impl WriteXdr for ClaimOfferAtomV0

§

impl WriteXdr for ClaimableBalanceEntry

§

impl WriteXdr for ClaimableBalanceEntryExtensionV1

§

impl WriteXdr for ClaimantV0

§

impl WriteXdr for ClawbackClaimableBalanceOp

§

impl WriteXdr for ClawbackOp

§

impl WriteXdr for ConfigSettingContractBandwidthV0

§

impl WriteXdr for ConfigSettingContractComputeV0

§

impl WriteXdr for ConfigSettingContractEventsV0

§

impl WriteXdr for ConfigSettingContractExecutionLanesV0

§

impl WriteXdr for ConfigSettingContractHistoricalDataV0

§

impl WriteXdr for ConfigSettingContractLedgerCostV0

§

impl WriteXdr for ConfigUpgradeSet

§

impl WriteXdr for ConfigUpgradeSetKey

§

impl WriteXdr for ContractCodeEntry

§

impl WriteXdr for ContractCostParamEntry

§

impl WriteXdr for ContractCostParams

§

impl WriteXdr for ContractDataEntry

§

impl WriteXdr for ContractEvent

§

impl WriteXdr for ContractEventV0

§

impl WriteXdr for ContractIdPreimageFromAddress

§

impl WriteXdr for CreateAccountOp

§

impl WriteXdr for CreateClaimableBalanceOp

§

impl WriteXdr for CreateContractArgs

§

impl WriteXdr for CreatePassiveSellOfferOp

§

impl WriteXdr for Curve25519Public

§

impl WriteXdr for Curve25519Secret

§

impl WriteXdr for DataEntry

§

impl WriteXdr for DataValue

§

impl WriteXdr for DecoratedSignature

§

impl WriteXdr for DiagnosticEvent

§

impl WriteXdr for DontHave

§

impl WriteXdr for Duration

§

impl WriteXdr for EncryptedBody

§

impl WriteXdr for EvictionIterator

§

impl WriteXdr for ExtendFootprintTtlOp

§

impl WriteXdr for FeeBumpTransaction

§

impl WriteXdr for FeeBumpTransactionEnvelope

§

impl WriteXdr for FloodAdvert

§

impl WriteXdr for FloodDemand

§

impl WriteXdr for Hash

§

impl WriteXdr for HashIdPreimageContractId

§

impl WriteXdr for HashIdPreimageOperationId

§

impl WriteXdr for HashIdPreimageRevokeId

§

impl WriteXdr for HashIdPreimageSorobanAuthorization

§

impl WriteXdr for Hello

§

impl WriteXdr for HmacSha256Key

§

impl WriteXdr for HmacSha256Mac

§

impl WriteXdr for InflationPayout

§

impl WriteXdr for InnerTransactionResult

§

impl WriteXdr for InnerTransactionResultPair

§

impl WriteXdr for Int128Parts

§

impl WriteXdr for Int256Parts

§

impl WriteXdr for InvokeContractArgs

§

impl WriteXdr for InvokeHostFunctionOp

§

impl WriteXdr for InvokeHostFunctionSuccessPreImage

§

impl WriteXdr for LedgerBounds

§

impl WriteXdr for LedgerCloseMetaV0

§

impl WriteXdr for LedgerCloseMetaV1

§

impl WriteXdr for LedgerCloseValueSignature

§

impl WriteXdr for LedgerEntry

§

impl WriteXdr for LedgerEntryChanges

§

impl WriteXdr for LedgerEntryExtensionV1

§

impl WriteXdr for LedgerFootprint

§

impl WriteXdr for LedgerHeader

§

impl WriteXdr for LedgerHeaderExtensionV1

§

impl WriteXdr for LedgerHeaderHistoryEntry

§

impl WriteXdr for LedgerKeyAccount

§

impl WriteXdr for LedgerKeyClaimableBalance

§

impl WriteXdr for LedgerKeyConfigSetting

§

impl WriteXdr for LedgerKeyContractCode

§

impl WriteXdr for LedgerKeyContractData

§

impl WriteXdr for LedgerKeyData

§

impl WriteXdr for LedgerKeyLiquidityPool

§

impl WriteXdr for LedgerKeyOffer

§

impl WriteXdr for LedgerKeyTrustLine

§

impl WriteXdr for LedgerKeyTtl

§

impl WriteXdr for LedgerScpMessages

§

impl WriteXdr for Liabilities

§

impl WriteXdr for LiquidityPoolConstantProductParameters

§

impl WriteXdr for LiquidityPoolDepositOp

§

impl WriteXdr for LiquidityPoolEntry

§

impl WriteXdr for LiquidityPoolEntryConstantProduct

§

impl WriteXdr for LiquidityPoolWithdrawOp

§

impl WriteXdr for ManageBuyOfferOp

§

impl WriteXdr for ManageDataOp

§

impl WriteXdr for ManageOfferSuccessResult

§

impl WriteXdr for ManageSellOfferOp

§

impl WriteXdr for MuxedAccountMed25519

§

impl WriteXdr for NodeId

§

impl WriteXdr for OfferEntry

§

impl WriteXdr for Operation

§

impl WriteXdr for OperationMeta

§

impl WriteXdr for PathPaymentStrictReceiveOp

§

impl WriteXdr for PathPaymentStrictReceiveResultSuccess

§

impl WriteXdr for PathPaymentStrictSendOp

§

impl WriteXdr for PathPaymentStrictSendResultSuccess

§

impl WriteXdr for PaymentOp

§

impl WriteXdr for PeerAddress

§

impl WriteXdr for PeerStatList

§

impl WriteXdr for PeerStats

§

impl WriteXdr for PersistedScpStateV0

§

impl WriteXdr for PersistedScpStateV1

§

impl WriteXdr for PoolId

§

impl WriteXdr for PreconditionsV2

§

impl WriteXdr for Price

§

impl WriteXdr for RestoreFootprintOp

§

impl WriteXdr for RevokeSponsorshipOpSigner

§

impl WriteXdr for SError

§

impl WriteXdr for ScBytes

§

impl WriteXdr for ScContractInstance

§

impl WriteXdr for ScMap

§

impl WriteXdr for ScMapEntry

§

impl WriteXdr for ScMetaV0

§

impl WriteXdr for ScNonceKey

§

impl WriteXdr for ScSpecFunctionInputV0

§

impl WriteXdr for ScSpecFunctionV0

§

impl WriteXdr for ScSpecTypeBytesN

§

impl WriteXdr for ScSpecTypeMap

§

impl WriteXdr for ScSpecTypeOption

§

impl WriteXdr for ScSpecTypeResult

§

impl WriteXdr for ScSpecTypeTuple

§

impl WriteXdr for ScSpecTypeUdt

§

impl WriteXdr for ScSpecTypeVec

§

impl WriteXdr for ScSpecUdtEnumCaseV0

§

impl WriteXdr for ScSpecUdtEnumV0

§

impl WriteXdr for ScSpecUdtErrorEnumCaseV0

§

impl WriteXdr for ScSpecUdtErrorEnumV0

§

impl WriteXdr for ScSpecUdtStructFieldV0

§

impl WriteXdr for ScSpecUdtStructV0

§

impl WriteXdr for ScSpecUdtUnionCaseTupleV0

§

impl WriteXdr for ScSpecUdtUnionCaseVoidV0

§

impl WriteXdr for ScSpecUdtUnionV0

§

impl WriteXdr for ScString

§

impl WriteXdr for ScSymbol

§

impl WriteXdr for ScVec

§

impl WriteXdr for ScpBallot

§

impl WriteXdr for ScpEnvelope

§

impl WriteXdr for ScpHistoryEntryV0

§

impl WriteXdr for ScpNomination

§

impl WriteXdr for ScpQuorumSet

§

impl WriteXdr for ScpStatement

§

impl WriteXdr for ScpStatementConfirm

§

impl WriteXdr for ScpStatementExternalize

§

impl WriteXdr for ScpStatementPrepare

§

impl WriteXdr for SendMore

§

impl WriteXdr for SendMoreExtended

§

impl WriteXdr for SequenceNumber

§

impl WriteXdr for SetOptionsOp

§

impl WriteXdr for SetTrustLineFlagsOp

§

impl WriteXdr for Signature

§

impl WriteXdr for SignatureHint

§

impl WriteXdr for SignedSurveyRequestMessage

§

impl WriteXdr for SignedSurveyResponseMessage

§

impl WriteXdr for Signer

§

impl WriteXdr for SignerKeyEd25519SignedPayload

§

impl WriteXdr for SimplePaymentResult

§

impl WriteXdr for SorobanAddressCredentials

§

impl WriteXdr for SorobanAuthorizationEntry

§

impl WriteXdr for SorobanAuthorizedInvocation

§

impl WriteXdr for SorobanResources

§

impl WriteXdr for SorobanTransactionData

§

impl WriteXdr for SorobanTransactionMeta

§

impl WriteXdr for SponsorshipDescriptor

§

impl WriteXdr for StateArchivalSettings

§

impl WriteXdr for StellarValue

§

impl WriteXdr for StoredDebugTransactionSet

§

impl WriteXdr for String32

§

impl WriteXdr for String64

§

impl WriteXdr for SurveyRequestMessage

§

impl WriteXdr for SurveyResponseMessage

§

impl WriteXdr for Thresholds

§

impl WriteXdr for TimeBounds

§

impl WriteXdr for TimePoint

§

impl WriteXdr for TopologyResponseBodyV0

§

impl WriteXdr for TopologyResponseBodyV1

§

impl WriteXdr for Transaction

§

impl WriteXdr for TransactionHistoryEntry

§

impl WriteXdr for TransactionHistoryResultEntry

§

impl WriteXdr for TransactionMetaV1

§

impl WriteXdr for TransactionMetaV2

§

impl WriteXdr for TransactionMetaV3

§

impl WriteXdr for TransactionResult

§

impl WriteXdr for TransactionResultMeta

§

impl WriteXdr for TransactionResultPair

§

impl WriteXdr for TransactionResultSet

§

impl WriteXdr for TransactionSet

§

impl WriteXdr for TransactionSetV1

§

impl WriteXdr for TransactionSignaturePayload

§

impl WriteXdr for TransactionV0

§

impl WriteXdr for TransactionV0Envelope

§

impl WriteXdr for TransactionV1Envelope

§

impl WriteXdr for TrustLineEntry

§

impl WriteXdr for TrustLineEntryExtensionV2

§

impl WriteXdr for TrustLineEntryV1

§

impl WriteXdr for TtlEntry

§

impl WriteXdr for TxAdvertVector

§

impl WriteXdr for TxDemandVector

§

impl WriteXdr for TxSetComponentTxsMaybeDiscountedFee

§

impl WriteXdr for UInt128Parts

§

impl WriteXdr for UInt256Parts

§

impl WriteXdr for Uint256

§

impl WriteXdr for UpgradeEntryMeta

§

impl WriteXdr for UpgradeType

§

impl WriteXdr for Value

§

impl<T, const MAX: u32> WriteXdr for VecM<T, MAX>
where T: WriteXdr,

§

impl<const MAX: u32> WriteXdr for BytesM<MAX>

§

impl<const MAX: u32> WriteXdr for StringM<MAX>

§

impl<const MAX: u32> WriteXdr for VecM<u8, MAX>