soroban_sdk::xdr

Trait ToXdr

Source
pub trait ToXdr {
    // Required method
    fn to_xdr(self, env: &Env) -> Bytes;
}
Expand description

Implemented by types that can be serialized to Bytes.

All types that are convertible to Val are implemented.

Required Methods§

Source

fn to_xdr(self, env: &Env) -> Bytes

Implementors§

Source§

impl<T> ToXdr for T
where T: IntoVal<Env, Val>,