pub struct Contract {
    pub hashes: Option<BTreeMap<String, String>>,
    pub abi: Option<Value>,
    pub metadata: Option<String>,
    pub devdoc: Option<Value>,
    pub userdoc: Option<Value>,
    pub storage_layout: Option<Value>,
    pub ast: Option<Value>,
    pub asm: Option<Value>,
    pub bin: Option<String>,
    pub bin_runtime: Option<String>,
    pub factory_deps: Option<BTreeMap<String, String>>,
    pub missing_libraries: Option<HashSet<String>>,
}
Expand description

The contract.

Fields§

§hashes: Option<BTreeMap<String, String>>

The solc hashes output.

§abi: Option<Value>

The solc ABI output.

§metadata: Option<String>

The solc metadata output.

§devdoc: Option<Value>

The solc developer documentation output.

§userdoc: Option<Value>

The solc user documentation output.

§storage_layout: Option<Value>

The solc storage layout output.

§ast: Option<Value>

The solc AST output.

§asm: Option<Value>

The solc assembly output.

§bin: Option<String>

The solc hexadecimal binary output.

§bin_runtime: Option<String>

The solc hexadecimal binary runtime part output.

§factory_deps: Option<BTreeMap<String, String>>

The factory dependencies.

§missing_libraries: Option<HashSet<String>>

The missing libraries.

Implementations§

Source§

impl Contract

Source

pub fn entry(&self, entry: &str) -> u32

Returns the signature hash of the specified contract entry.

§Panics

If the hashes have not been requested in the solc call.

Trait Implementations§

Source§

impl Debug for Contract

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Contract

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Contract

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,