Struct ethers_solc::artifacts::contract::CompactContractBytecodeCow
source · pub struct CompactContractBytecodeCow<'a> {
pub abi: Option<Cow<'a, Abi>>,
pub bytecode: Option<Cow<'a, CompactBytecode>>,
pub deployed_bytecode: Option<Cow<'a, CompactDeployedBytecode>>,
}
Expand description
A CompactContractBytecode that is either owns or borrows its content
Fields§
§abi: Option<Cow<'a, Abi>>
§bytecode: Option<Cow<'a, CompactBytecode>>
§deployed_bytecode: Option<Cow<'a, CompactDeployedBytecode>>
Trait Implementations§
source§impl<'a> Clone for CompactContractBytecodeCow<'a>
impl<'a> Clone for CompactContractBytecodeCow<'a>
source§fn clone(&self) -> CompactContractBytecodeCow<'a>
fn clone(&self) -> CompactContractBytecodeCow<'a>
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<'a> Debug for CompactContractBytecodeCow<'a>
impl<'a> Debug for CompactContractBytecodeCow<'a>
source§impl<'a> Default for CompactContractBytecodeCow<'a>
impl<'a> Default for CompactContractBytecodeCow<'a>
source§fn default() -> CompactContractBytecodeCow<'a>
fn default() -> CompactContractBytecodeCow<'a>
Returns the “default value” for a type. Read more
source§impl<'de, 'a> Deserialize<'de> for CompactContractBytecodeCow<'a>
impl<'de, 'a> Deserialize<'de> for CompactContractBytecodeCow<'a>
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<'a> From<&'a CompactContractBytecode> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a CompactContractBytecode> for CompactContractBytecodeCow<'a>
source§fn from(artifact: &'a CompactContractBytecode) -> Self
fn from(artifact: &'a CompactContractBytecode) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a ConfigurableContractArtifact> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a ConfigurableContractArtifact> for CompactContractBytecodeCow<'a>
source§fn from(artifact: &'a ConfigurableContractArtifact) -> Self
fn from(artifact: &'a ConfigurableContractArtifact) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a Contract> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a Contract> for CompactContractBytecodeCow<'a>
source§impl<'a> From<&'a HardhatArtifact> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a HardhatArtifact> for CompactContractBytecodeCow<'a>
source§fn from(artifact: &'a HardhatArtifact) -> Self
fn from(artifact: &'a HardhatArtifact) -> Self
Converts to this type from the input type.