Struct abstract_std::objects::module::ModuleInfo   
source · pub struct ModuleInfo {
    pub namespace: Namespace,
    pub name: String,
    pub version: ModuleVersion,
}Expand description
Stores the namespace, name, and version of an Abstract module.
Fields§
§namespace: NamespaceNamespace of the module
name: StringName of the contract
version: ModuleVersionVersion of the module
Implementations§
source§impl ModuleInfo
 
impl ModuleInfo
pub fn from_id(id: &str, version: ModuleVersion) -> AbstractResult<Self>
pub fn from_id_latest(id: &str) -> AbstractResult<Self>
pub fn validate(&self) -> AbstractResult<()>
pub fn id(&self) -> String
pub fn id_with_version(&self) -> String
pub fn assert_version_variant(&self) -> AbstractResult<()>
Trait Implementations§
source§impl Clone for ModuleInfo
 
impl Clone for ModuleInfo
source§fn clone(&self) -> ModuleInfo
 
fn clone(&self) -> ModuleInfo
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 ModuleInfo
 
impl Debug for ModuleInfo
source§impl<'de> Deserialize<'de> for ModuleInfo
 
impl<'de> Deserialize<'de> for ModuleInfo
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 Display for ModuleInfo
 
impl Display for ModuleInfo
source§impl JsonSchema for ModuleInfo
 
impl JsonSchema for ModuleInfo
source§fn schema_name() -> String
 
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
 
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. 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 KeyDeserialize for &ModuleInfo
 
impl KeyDeserialize for &ModuleInfo
source§impl PartialEq for ModuleInfo
 
impl PartialEq for ModuleInfo
source§fn eq(&self, other: &ModuleInfo) -> bool
 
fn eq(&self, other: &ModuleInfo) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl<'a> Prefixer<'a> for &ModuleInfo
 
impl<'a> Prefixer<'a> for &ModuleInfo
source§impl<'a> PrimaryKey<'a> for &ModuleInfo
 
impl<'a> PrimaryKey<'a> for &ModuleInfo
type SuperSuffix = (String, String)
fn joined_key(&self) -> Vec<u8>
fn joined_extra_key(&self, key: &[u8]) -> Vec<u8>
source§impl Serialize for ModuleInfo
 
impl Serialize for ModuleInfo
source§impl TryFrom<ContractVersion> for ModuleInfo
 
impl TryFrom<ContractVersion> for ModuleInfo
§type Error = AbstractError
 
type Error = AbstractError
The type returned in the event of a conversion error.
source§impl TryFrom<ModuleInfo> for ContractVersion
 
impl TryFrom<ModuleInfo> for ContractVersion
§type Error = AbstractError
 
type Error = AbstractError
The type returned in the event of a conversion error.
impl StructuralPartialEq for ModuleInfo
Auto Trait Implementations§
impl Freeze for ModuleInfo
impl RefUnwindSafe for ModuleInfo
impl Send for ModuleInfo
impl Sync for ModuleInfo
impl Unpin for ModuleInfo
impl UnwindSafe for ModuleInfo
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more