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: Optimizermetadata: 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
sourceimpl Clone for MetadataSettings
impl Clone for MetadataSettings
sourcefn clone(&self) -> MetadataSettings
fn clone(&self) -> MetadataSettings
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 moresourceimpl Debug for MetadataSettings
impl Debug for MetadataSettings
sourceimpl<'de> Deserialize<'de> for MetadataSettings
impl<'de> Deserialize<'de> for MetadataSettings
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 PartialEq<MetadataSettings> for MetadataSettings
impl PartialEq<MetadataSettings> for MetadataSettings
sourcefn eq(&self, other: &MetadataSettings) -> bool
fn eq(&self, other: &MetadataSettings) -> bool
sourceimpl 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
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.