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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'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
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CompactContractBytecodeCow<'a>) -> bool
fn ne(&self, other: &CompactContractBytecodeCow<'a>) -> bool
This method tests for !=.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more