Struct ethers_solc::artifacts::contract::CompactContractBytecode
source · [−]pub struct CompactContractBytecode {
pub abi: Option<Abi>,
pub bytecode: Option<CompactBytecode>,
pub deployed_bytecode: Option<CompactDeployedBytecode>,
}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: Option<Abi>The Ethereum Contract ABI. If empty, it is represented as an empty array. See https://docs.soliditylang.org/en/develop/abi-spec.html
bytecode: Option<CompactBytecode>deployed_bytecode: Option<CompactDeployedBytecode>Implementations
Trait Implementations
sourceimpl Clone for CompactContractBytecode
impl Clone for CompactContractBytecode
sourcefn clone(&self) -> CompactContractBytecode
fn clone(&self) -> CompactContractBytecode
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 Debug for CompactContractBytecode
impl Debug for CompactContractBytecode
sourceimpl Default for CompactContractBytecode
impl Default for CompactContractBytecode
sourcefn default() -> CompactContractBytecode
fn default() -> CompactContractBytecode
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CompactContractBytecode
impl<'de> Deserialize<'de> for CompactContractBytecode
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 From<CompactContractBytecode> for CompactContract
impl From<CompactContractBytecode> for CompactContract
sourcefn from(c: CompactContractBytecode) -> Self
fn from(c: CompactContractBytecode) -> Self
Converts to this type from the input type.
sourceimpl From<CompactContractBytecode> for ContractBytecode
impl From<CompactContractBytecode> for ContractBytecode
sourcefn from(c: CompactContractBytecode) -> Self
fn from(c: CompactContractBytecode) -> Self
Converts to this type from the input type.
sourceimpl From<ConfigurableContractArtifact> for CompactContractBytecode
impl From<ConfigurableContractArtifact> for CompactContractBytecode
sourcefn from(artifact: ConfigurableContractArtifact) -> Self
fn from(artifact: ConfigurableContractArtifact) -> Self
Converts to this type from the input type.
sourceimpl From<Contract> for CompactContractBytecode
impl From<Contract> for CompactContractBytecode
sourceimpl From<ContractBytecode> for CompactContractBytecode
impl From<ContractBytecode> for CompactContractBytecode
sourcefn from(c: ContractBytecode) -> Self
fn from(c: ContractBytecode) -> Self
Converts to this type from the input type.
sourceimpl From<HardhatArtifact> for CompactContractBytecode
impl From<HardhatArtifact> for CompactContractBytecode
sourcefn from(artifact: HardhatArtifact) -> Self
fn from(artifact: HardhatArtifact) -> Self
Converts to this type from the input type.
sourceimpl From<Value> for CompactContractBytecode
impl From<Value> for CompactContractBytecode
sourceimpl PartialEq<CompactContractBytecode> for CompactContractBytecode
impl PartialEq<CompactContractBytecode> for CompactContractBytecode
sourcefn eq(&self, other: &CompactContractBytecode) -> bool
fn eq(&self, other: &CompactContractBytecode) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CompactContractBytecode) -> bool
fn ne(&self, other: &CompactContractBytecode) -> bool
This method tests for !=.
sourceimpl Serialize for CompactContractBytecode
impl Serialize for CompactContractBytecode
impl StructuralPartialEq for CompactContractBytecode
Auto Trait Implementations
impl RefUnwindSafe for CompactContractBytecode
impl Send for CompactContractBytecode
impl Sync for CompactContractBytecode
impl Unpin for CompactContractBytecode
impl UnwindSafe for CompactContractBytecode
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