Struct cosmwasm_std::CodeInfoResponse
source · #[non_exhaustive]pub struct CodeInfoResponse {
pub code_id: u64,
pub creator: String,
pub checksum: HexBinary,
}Expand description
The essential data from wasmd’s CodeInfo/CodeInfoResponse.
code_hash/data_hash was renamed to checksum to follow the CosmWasm
convention and naming in instantiate2_address.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code_id: u64§creator: StringThe address that initially stored the code
checksum: HexBinaryThe hash of the Wasm blob
Trait Implementations§
source§impl Clone for CodeInfoResponse
impl Clone for CodeInfoResponse
source§fn clone(&self) -> CodeInfoResponse
fn clone(&self) -> CodeInfoResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CodeInfoResponse
impl Debug for CodeInfoResponse
source§impl Default for CodeInfoResponse
impl Default for CodeInfoResponse
source§fn default() -> CodeInfoResponse
fn default() -> CodeInfoResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CodeInfoResponse
impl<'de> Deserialize<'de> for CodeInfoResponse
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
source§impl JsonSchema for CodeInfoResponse
impl JsonSchema for CodeInfoResponse
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl PartialEq<CodeInfoResponse> for CodeInfoResponse
impl PartialEq<CodeInfoResponse> for CodeInfoResponse
source§fn eq(&self, other: &CodeInfoResponse) -> bool
fn eq(&self, other: &CodeInfoResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.