pub trait ToSolStruct<T: SolStruct> {
// Required method
fn to_sol_struct(&self) -> T;
}
Available on crate feature
signed-message
only.Expand description
A conversion trait for converting a type into a solidity struct representation
This trait is used to convert a Rust type into a struct implementing the SolStruct
trait.
Required Methods§
Sourcefn to_sol_struct(&self) -> T
fn to_sol_struct(&self) -> T
Convert into the solidity struct representation