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>,