Struct ethers_solc::artifacts::contract::CompactContractBytecode
source · [−]pub struct CompactContractBytecode {
pub abi: Option<Abi>,
pub bytecode: Option<CompactBytecode>,
pub deployed_bytecode: Option<CompactDeployedBytecode>,
}
Expand description
Minimal representation of a contract with a present abi and bytecode.
Unlike CompactContractSome
which contains the BytecodeObject
, this holds the whole
Bytecode
object.
Fields
abi: Option<Abi>
The Ethereum Contract ABI. If empty, it is represented as an empty array. See https://docs.soliditylang.org/en/develop/abi-spec.html
bytecode: Option<CompactBytecode>
deployed_bytecode: Option<CompactDeployedBytecode>
Implementations
Trait Implementations
sourceimpl Clone for CompactContractBytecode
impl Clone for CompactContractBytecode
sourcefn clone(&self) -> CompactContractBytecode
fn clone(&self) -> CompactContractBytecode
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CompactContractBytecode
impl Debug for CompactContractBytecode
sourceimpl Default for CompactContractBytecode
impl Default for CompactContractBytecode
sourcefn default() -> CompactContractBytecode
fn default() -> CompactContractBytecode
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CompactContractBytecode
impl<'de> Deserialize<'de> for CompactContractBytecode
sourcefn 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
sourceimpl<'a> From<&'a CompactContractBytecode> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a CompactContractBytecode> for CompactContractBytecodeCow<'a>
sourcefn from(artifact: &'a CompactContractBytecode) -> Self
fn from(artifact: &'a CompactContractBytecode) -> Self
Converts to this type from the input type.
sourceimpl From<CompactContractBytecode> for CompactContract
impl From<CompactContractBytecode> for CompactContract
sourcefn from(c: CompactContractBytecode) -> Self
fn from(c: CompactContractBytecode) -> Self
Converts to this type from the input type.
sourceimpl From<CompactContractBytecode> for ContractBytecode
impl From<CompactContractBytecode> for ContractBytecode
sourcefn from(c: CompactContractBytecode) -> Self
fn from(c: CompactContractBytecode) -> Self
Converts to this type from the input type.
sourceimpl From<ConfigurableContractArtifact> for CompactContractBytecode
impl From<ConfigurableContractArtifact> for CompactContractBytecode
sourcefn from(artifact: ConfigurableContractArtifact) -> Self
fn from(artifact: ConfigurableContractArtifact) -> Self
Converts to this type from the input type.
sourceimpl From<Contract> for CompactContractBytecode
impl From<Contract> for CompactContractBytecode
sourceimpl From<ContractBytecode> for CompactContractBytecode
impl From<ContractBytecode> for CompactContractBytecode
sourcefn from(c: ContractBytecode) -> Self
fn from(c: ContractBytecode) -> Self
Converts to this type from the input type.
sourceimpl From<HardhatArtifact> for CompactContractBytecode
impl From<HardhatArtifact> for CompactContractBytecode
sourcefn from(artifact: HardhatArtifact) -> Self
fn from(artifact: HardhatArtifact) -> Self
Converts to this type from the input type.
sourceimpl From<Value> for CompactContractBytecode
impl From<Value> for CompactContractBytecode
sourceimpl PartialEq<CompactContractBytecode> for CompactContractBytecode
impl PartialEq<CompactContractBytecode> for CompactContractBytecode
sourcefn eq(&self, other: &CompactContractBytecode) -> bool
fn eq(&self, other: &CompactContractBytecode) -> bool
sourceimpl Serialize for CompactContractBytecode
impl Serialize for CompactContractBytecode
impl StructuralPartialEq for CompactContractBytecode
Auto Trait Implementations
impl RefUnwindSafe for CompactContractBytecode
impl Send for CompactContractBytecode
impl Sync for CompactContractBytecode
impl Unpin for CompactContractBytecode
impl UnwindSafe for CompactContractBytecode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more