Trait ToSolStruct

Source
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§

Source

fn to_sol_struct(&self) -> T

Convert into the solidity struct representation

Implementors§

Source§

impl<T> ToSolStruct<T> for T
where T: SolStruct + Clone,