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

Build the object that can be serialized to XDR.

Provided Methods

Serialize to the writer w.

Serialize to base64.

Implementors