Struct ethers_solc::artifacts::contract::CompactContractBytecodeCow
source · pub struct CompactContractBytecodeCow<'a> {
pub abi: Option<Cow<'a, Contract>>,
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, Contract>>
§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.
source§impl<'a> From<&'a Value> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a Value> for CompactContractBytecodeCow<'a>
source§impl<'a> PartialEq for CompactContractBytecodeCow<'a>
impl<'a> PartialEq for CompactContractBytecodeCow<'a>
source§fn eq(&self, other: &CompactContractBytecodeCow<'a>) -> bool
fn eq(&self, other: &CompactContractBytecodeCow<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for CompactContractBytecodeCow<'a>
impl<'a> Serialize for CompactContractBytecodeCow<'a>
impl<'a> StructuralPartialEq for CompactContractBytecodeCow<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for CompactContractBytecodeCow<'a>
impl<'a> Send for CompactContractBytecodeCow<'a>
impl<'a> Sync for CompactContractBytecodeCow<'a>
impl<'a> Unpin for CompactContractBytecodeCow<'a>
impl<'a> UnwindSafe for CompactContractBytecodeCow<'a>
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