pub struct Input {
pub language: Language,
pub sources: BTreeMap<String, Source>,
pub settings: Settings,
}
Expand description
The solc --standard-json
input.
Fields§
§language: Language
The input language.
sources: BTreeMap<String, Source>
The input source code files hashmap.
settings: Settings
The compiler settings.
Implementations§
Source§impl Input
impl Input
Sourcepub fn try_from_stdin() -> Result<Self>
pub fn try_from_stdin() -> Result<Self>
A shortcut constructor from stdin.
Sourcepub fn try_from_paths(
language: Language,
evm_version: Option<EVMVersion>,
paths: &[PathBuf],
library_map: Vec<String>,
remappings: Option<BTreeSet<String>>,
output_selection: SolcStandardJsonInputSettingsSelection,
optimizer: SolcStandardJsonInputSettingsOptimizer,
metadata: Option<SolcStandardJsonInputSettingsMetadata>,
polkavm: Option<SolcStandardJsonInputSettingsPolkaVM>,
) -> Result<Self>
pub fn try_from_paths( language: Language, evm_version: Option<EVMVersion>, paths: &[PathBuf], library_map: Vec<String>, remappings: Option<BTreeSet<String>>, output_selection: SolcStandardJsonInputSettingsSelection, optimizer: SolcStandardJsonInputSettingsOptimizer, metadata: Option<SolcStandardJsonInputSettingsMetadata>, polkavm: Option<SolcStandardJsonInputSettingsPolkaVM>, ) -> Result<Self>
A shortcut constructor from paths.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Input
impl<'de> Deserialize<'de> for Input
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
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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