pub struct Source {
pub hash: CodeHash,
pub language: SourceLanguage,
pub compiler: SourceCompiler,
pub wasm: Option<SourceWasm>,
pub build_info: Option<Map<String, Value>>,
}
Expand description
Information about the contract’s Wasm code.
Fields§
§hash: CodeHash
The hash of the contract’s Wasm code.
language: SourceLanguage
The language used to write the contract.
compiler: SourceCompiler
The compiler used to compile the contract.
wasm: Option<SourceWasm>
The actual Wasm code of the contract, for optionally bundling the code with the metadata.
build_info: Option<Map<String, Value>>
Extra information about the environment in which the contract was built.
Useful for producing deterministic builds.
Implementations§
Source§impl Source
impl Source
Sourcepub fn new(
wasm: Option<SourceWasm>,
hash: CodeHash,
language: SourceLanguage,
compiler: SourceCompiler,
build_info: Option<Map<String, Value>>,
) -> Self
pub fn new( wasm: Option<SourceWasm>, hash: CodeHash, language: SourceLanguage, compiler: SourceCompiler, build_info: Option<Map<String, Value>>, ) -> Self
Constructs a new InkProjectSource.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
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 Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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