Trait shuttle_core::ToXdr
[−]
[src]
pub trait ToXdr<T: Serialize>: Sized { fn to_xdr(&self) -> Result<T>; fn to_writer<W: Write>(&self, w: &mut W) -> Result<()> { ... } fn to_base64(&self) -> Result<String> { ... } }
A trait to try and serialize some type into an XDR object.
Required Methods
Provided Methods
fn to_writer<W: Write>(&self, w: &mut W) -> Result<()>
Serialize to the writer w.
fn to_base64(&self) -> Result<String>
Serialize to base64.
Implementors
impl ToXdr<Asset> for Assetimpl ToXdr<PublicKey> for PublicKeyimpl ToXdr<Memo> for Memoimpl ToXdr<Operation> for Operationimpl ToXdr<DecoratedSignature> for DecoratedSignatureimpl ToXdr<TimeBounds> for TimeBoundsimpl ToXdr<Transaction> for Transactionimpl ToXdr<TransactionEnvelope> for SignedTransaction