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 Asset
impl ToXdr<PublicKey> for PublicKey
impl ToXdr<Memo> for Memo
impl ToXdr<Operation> for Operation
impl ToXdr<DecoratedSignature> for DecoratedSignature
impl ToXdr<TimeBounds> for TimeBounds
impl ToXdr<Transaction> for Transaction
impl ToXdr<TransactionEnvelope> for SignedTransaction