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§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<BytecodeHash> for BytecodeHash
impl PartialEq<BytecodeHash> for BytecodeHash
source§fn eq(&self, other: &BytecodeHash) -> bool
fn eq(&self, other: &BytecodeHash) -> bool
source§impl Serialize for BytecodeHash
impl Serialize for BytecodeHash
impl Copy for BytecodeHash
impl Eq for BytecodeHash
impl StructuralEq 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.