Enum ethers_solc::artifacts::BytecodeHash
source · pub enum BytecodeHash {
Ipfs,
None,
Bzzr1,
}
Expand description
Determines the hash method for the metadata hash that is appended to the bytecode.
Solc’s default is Ipfs
, see https://docs.soliditylang.org/en/latest/using-the-compiler.html#compiler-api.
Variants§
Trait Implementations§
source§impl Clone for BytecodeHash
impl Clone for BytecodeHash
source§fn clone(&self) -> BytecodeHash
fn clone(&self) -> BytecodeHash
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 Debug for BytecodeHash
impl Debug for BytecodeHash
source§impl Default for BytecodeHash
impl Default for BytecodeHash
source§fn default() -> BytecodeHash
fn default() -> BytecodeHash
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BytecodeHash
impl<'de> Deserialize<'de> for BytecodeHash
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 Display for BytecodeHash
impl Display for BytecodeHash
source§impl From<BytecodeHash> for SettingsMetadata
impl From<BytecodeHash> for SettingsMetadata
source§fn from(hash: BytecodeHash) -> Self
fn from(hash: BytecodeHash) -> Self
Converts to this type from the input type.
source§impl FromStr for BytecodeHash
impl FromStr for BytecodeHash
source§impl PartialEq for BytecodeHash
impl PartialEq for BytecodeHash
source§fn eq(&self, other: &BytecodeHash) -> bool
fn eq(&self, other: &BytecodeHash) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BytecodeHash
impl Serialize for BytecodeHash
impl Copy for BytecodeHash
impl Eq for BytecodeHash
impl StructuralPartialEq for BytecodeHash
Auto Trait Implementations§
impl RefUnwindSafe for BytecodeHash
impl Send for BytecodeHash
impl Sync for BytecodeHash
impl Unpin for BytecodeHash
impl UnwindSafe for BytecodeHash
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.