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
sourceimpl<'a> Clone for CompactContractBytecodeCow<'a>
impl<'a> Clone for CompactContractBytecodeCow<'a>
sourcefn clone(&self) -> CompactContractBytecodeCow<'a>
fn clone(&self) -> CompactContractBytecodeCow<'a>
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<'a> Debug for CompactContractBytecodeCow<'a>
impl<'a> Debug for CompactContractBytecodeCow<'a>
sourceimpl<'a> Default for CompactContractBytecodeCow<'a>
impl<'a> Default for CompactContractBytecodeCow<'a>
sourcefn default() -> CompactContractBytecodeCow<'a>
fn default() -> CompactContractBytecodeCow<'a>
Returns the “default value” for a type. Read more
sourceimpl<'de, 'a> Deserialize<'de> for CompactContractBytecodeCow<'a>
impl<'de, 'a> Deserialize<'de> for CompactContractBytecodeCow<'a>
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<'a> From<&'a ConfigurableContractArtifact> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a ConfigurableContractArtifact> for CompactContractBytecodeCow<'a>
sourcefn from(artifact: &'a ConfigurableContractArtifact) -> Self
fn from(artifact: &'a ConfigurableContractArtifact) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a Contract> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a Contract> for CompactContractBytecodeCow<'a>
sourceimpl<'a> From<&'a HardhatArtifact> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a HardhatArtifact> for CompactContractBytecodeCow<'a>
sourcefn from(artifact: &'a HardhatArtifact) -> Self
fn from(artifact: &'a HardhatArtifact) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a Value> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a Value> for CompactContractBytecodeCow<'a>
sourceimpl<'a> PartialEq<CompactContractBytecodeCow<'a>> for CompactContractBytecodeCow<'a>
impl<'a> PartialEq<CompactContractBytecodeCow<'a>> for CompactContractBytecodeCow<'a>
sourcefn eq(&self, other: &CompactContractBytecodeCow<'a>) -> bool
fn eq(&self, other: &CompactContractBytecodeCow<'a>) -> bool
sourceimpl<'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
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