mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-05-09 14:07:59 +00:00
336fc63f1d
Signed-off-by: xermicus <cyrill@parity.io>
23 lines
640 B
Rust
23 lines
640 B
Rust
//! The `solc --standard-json` input settings metadata.
|
|
|
|
use serde::Deserialize;
|
|
use serde::Serialize;
|
|
|
|
/// The `solc --standard-json` input settings metadata.
|
|
#[derive(Debug, Default, Serialize, Deserialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct Metadata {
|
|
/// The bytecode hash mode.
|
|
#[serde(skip_serializing_if = "Option::is_none")]
|
|
pub bytecode_hash: Option<revive_llvm_context::PolkaVMMetadataHash>,
|
|
}
|
|
|
|
impl Metadata {
|
|
/// A shortcut constructor.
|
|
pub fn new(bytecode_hash: revive_llvm_context::PolkaVMMetadataHash) -> Self {
|
|
Self {
|
|
bytecode_hash: Some(bytecode_hash),
|
|
}
|
|
}
|
|
}
|