Struct ethers_solc::artifacts::MetadataSettings
source · pub struct MetadataSettings {
pub remappings: Vec<Remapping>,
pub optimizer: Optimizer,
pub metadata: Option<SettingsMetadata>,
pub compilation_target: BTreeMap<String, String>,
pub libraries: BTreeMap<String, String>,
pub via_ir: Option<bool>,
}
Expand description
Compiler settings
Fields§
§remappings: Vec<Remapping>
§optimizer: Optimizer
§metadata: Option<SettingsMetadata>
§compilation_target: BTreeMap<String, String>
Required for Solidity: File and name of the contract or library this metadata is created for.
libraries: BTreeMap<String, String>
Metadata settings
Note: this differs from Libraries
and does not require another mapping for file name
since metadata is per file
via_ir: Option<bool>
Change compilation pipeline to go through the Yul intermediate representation. This is false by default.
Trait Implementations§
source§impl Clone for MetadataSettings
impl Clone for MetadataSettings
source§fn clone(&self) -> MetadataSettings
fn clone(&self) -> MetadataSettings
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 MetadataSettings
impl Debug for MetadataSettings
source§impl<'de> Deserialize<'de> for MetadataSettings
impl<'de> Deserialize<'de> for MetadataSettings
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 PartialEq<MetadataSettings> for MetadataSettings
impl PartialEq<MetadataSettings> for MetadataSettings
source§fn eq(&self, other: &MetadataSettings) -> bool
fn eq(&self, other: &MetadataSettings) -> bool
source§impl Serialize for MetadataSettings
impl Serialize for MetadataSettings
impl Eq for MetadataSettings
impl StructuralEq for MetadataSettings
impl StructuralPartialEq for MetadataSettings
Auto Trait Implementations§
impl RefUnwindSafe for MetadataSettings
impl Send for MetadataSettings
impl Sync for MetadataSettings
impl Unpin for MetadataSettings
impl UnwindSafe for MetadataSettings
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.