Trait soroban_sdk::xdr::FromXdr

source ·
pub trait FromXdr: Sized {
    type Error;

    // Required method
    fn from_xdr(env: &Env, b: &Bytes) -> Result<Self, Self::Error>;
}
Expand description

Implemented by types that can be deserialized from Bytes.

All types that are convertible from Val are implemented.

Required Associated Types§

Required Methods§

source

fn from_xdr(env: &Env, b: &Bytes) -> Result<Self, Self::Error>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> FromXdr for T
where T: TryFromVal<Env, Val>,

§

type Error = <T as TryFromVal<Env, Val>>::Error