#[non_exhaustive]
pub enum ModuleReference {
Core(u64),
Native(Addr),
Api(Addr),
App(u64),
Standalone(u64),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Core(u64)
Core Abstract Contracts
Native(Addr)
Native Abstract Contracts
Api(Addr)
Installable apis
App(u64)
Installable apps
Standalone(u64)
A stand-alone contract
Implementations§
source§impl ModuleReference
impl ModuleReference
pub fn unwrap_core(&self) -> StdResult<u64>
pub fn unwrap_native(&self) -> StdResult<Addr>
pub fn unwrap_api(&self) -> StdResult<Addr>
pub fn unwrap_app(&self) -> StdResult<u64>
pub fn unwrap_standalone(&self) -> StdResult<u64>
Trait Implementations§
source§impl Clone for ModuleReference
impl Clone for ModuleReference
source§fn clone(&self) -> ModuleReference
fn clone(&self) -> ModuleReference
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 ModuleReference
impl Debug for ModuleReference
source§impl<'de> Deserialize<'de> for ModuleReference
impl<'de> Deserialize<'de> for ModuleReference
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 ModuleReference
impl JsonSchema for ModuleReference
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<ModuleReference> for ModuleReference
impl PartialEq<ModuleReference> for ModuleReference
source§fn eq(&self, other: &ModuleReference) -> bool
fn eq(&self, other: &ModuleReference) -> bool
This method tests for
self and other values to be equal, and is used
by ==.