Struct contract_metadata::Source [−][src]
pub struct Source {
pub hash: CodeHash,
pub language: SourceLanguage,
pub compiler: SourceCompiler,
pub wasm: Option<SourceWasm>,
}Expand description
Information about the contract’s Wasm code.
Fields
hash: CodeHashThe hash of the contract’s Wasm code.
language: SourceLanguageThe language used to write the contract.
compiler: SourceCompilerThe compiler used to compile the contract.
wasm: Option<SourceWasm>The actual Wasm code of the contract, for optionally bundling the code with the metadata.
Implementations
pub fn new(
wasm: Option<SourceWasm>,
hash: CodeHash,
language: SourceLanguage,
compiler: SourceCompiler
) -> Self
pub fn new(
wasm: Option<SourceWasm>,
hash: CodeHash,
language: SourceLanguage,
compiler: SourceCompiler
) -> Self
Constructs a new InkProjectSource.
Trait Implementations
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 RefUnwindSafe for Source
impl UnwindSafe for Source
Blanket Implementations
Mutably borrows from an owned value. Read more