Struct ethers_solc::artifacts::contract::ContractBytecodeSome
source · [−]pub struct ContractBytecodeSome {
pub abi: Abi,
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: Abi
bytecode: Bytecode
deployed_bytecode: DeployedBytecode
Trait Implementations
sourceimpl Clone for ContractBytecodeSome
impl Clone for ContractBytecodeSome
sourcefn clone(&self) -> ContractBytecodeSome
fn clone(&self) -> ContractBytecodeSome
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 ContractBytecodeSome
impl Debug for ContractBytecodeSome
sourceimpl<'de> Deserialize<'de> for ContractBytecodeSome
impl<'de> Deserialize<'de> for ContractBytecodeSome
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 From<ContractBytecodeSome> for CompactContract
impl From<ContractBytecodeSome> for CompactContract
sourcefn from(c: ContractBytecodeSome) -> Self
fn from(c: ContractBytecodeSome) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ContractBytecodeSome> for ContractBytecodeSome
impl PartialEq<ContractBytecodeSome> for ContractBytecodeSome
sourcefn eq(&self, other: &ContractBytecodeSome) -> bool
fn eq(&self, other: &ContractBytecodeSome) -> bool
sourceimpl Serialize for ContractBytecodeSome
impl Serialize for ContractBytecodeSome
sourceimpl 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.
sourcefn try_from(value: ContractBytecode) -> Result<Self, Self::Error>
fn try_from(value: ContractBytecode) -> Result<Self, Self::Error>
Performs the conversion.
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
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