pub struct TypeInfo {
pub encoding: Encoding,
pub label: String,
pub number_of_bytes: usize,
pub key: Option<String>,
pub value: Option<String>,
pub base: Option<String>,
pub members: Option<Vec<StorageEntry>>,
}Expand description
One entry of the layout’s types table.
Fields§
§encoding: EncodingHow values of this type are laid out.
label: StringSolidity type name, e.g. uint128, struct Foo.Bar.
number_of_bytes: usizeSize in bytes (for arrays: of the whole array).
key: Option<String>Mapping key type id.
value: Option<String>Mapping value type id.
base: Option<String>Array element type id.
members: Option<Vec<StorageEntry>>Struct members.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeInfo
impl<'de> Deserialize<'de> for TypeInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TypeInfo
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnsafeUnpin for TypeInfo
impl UnwindSafe for TypeInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more