Struct ethers_solc::artifacts::contract::ContractBytecodeSome
source · pub struct ContractBytecodeSome {
pub abi: Contract,
pub bytecode: Bytecode,
pub deployed_bytecode: DeployedBytecode,
}
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: Contract
§bytecode: Bytecode
§deployed_bytecode: DeployedBytecode
Trait Implementations§
source§impl Clone for ContractBytecodeSome
impl Clone for ContractBytecodeSome
source§fn clone(&self) -> ContractBytecodeSome
fn clone(&self) -> ContractBytecodeSome
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ContractBytecodeSome
impl Debug for ContractBytecodeSome
source§impl<'de> Deserialize<'de> for ContractBytecodeSome
impl<'de> Deserialize<'de> for ContractBytecodeSome
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
source§impl From<ContractBytecodeSome> for CompactContract
impl From<ContractBytecodeSome> for CompactContract
source§fn from(c: ContractBytecodeSome) -> Self
fn from(c: ContractBytecodeSome) -> Self
Converts to this type from the input type.
source§impl PartialEq for ContractBytecodeSome
impl PartialEq for ContractBytecodeSome
source§fn eq(&self, other: &ContractBytecodeSome) -> bool
fn eq(&self, other: &ContractBytecodeSome) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ContractBytecodeSome
impl Serialize for ContractBytecodeSome
source§impl TryFrom<ContractBytecode> for ContractBytecodeSome
impl TryFrom<ContractBytecode> for ContractBytecodeSome
§type Error = ContractBytecode
type Error = ContractBytecode
The type returned in the event of a conversion error.
impl StructuralPartialEq for ContractBytecodeSome
Auto Trait Implementations§
impl RefUnwindSafe for ContractBytecodeSome
impl Send for ContractBytecodeSome
impl Sync for ContractBytecodeSome
impl Unpin for ContractBytecodeSome
impl UnwindSafe for ContractBytecodeSome
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