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
Ipfs
None
Bzzr1
Trait Implementations
sourceimpl Clone for BytecodeHash
impl Clone for BytecodeHash
sourcefn clone(&self) -> BytecodeHash
fn clone(&self) -> BytecodeHash
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 Debug for BytecodeHash
impl Debug for BytecodeHash
sourceimpl Default for BytecodeHash
impl Default for BytecodeHash
sourceimpl<'de> Deserialize<'de> for BytecodeHash
impl<'de> Deserialize<'de> for BytecodeHash
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 Display for BytecodeHash
impl Display for BytecodeHash
sourceimpl From<BytecodeHash> for SettingsMetadata
impl From<BytecodeHash> for SettingsMetadata
sourcefn from(hash: BytecodeHash) -> Self
fn from(hash: BytecodeHash) -> Self
Converts to this type from the input type.
sourceimpl FromStr for BytecodeHash
impl FromStr for BytecodeHash
sourceimpl PartialEq<BytecodeHash> for BytecodeHash
impl PartialEq<BytecodeHash> for BytecodeHash
sourcefn eq(&self, other: &BytecodeHash) -> bool
fn eq(&self, other: &BytecodeHash) -> bool
sourceimpl 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
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
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.