pub struct ModuleMetadata {
pub name: String,
pub version: String,
pub description: String,
pub author: String,
pub capabilities: Vec<String>,
pub rpc_overrides: Vec<String>,
pub dependencies: HashMap<String, String>,
pub optional_dependencies: HashMap<String, String>,
pub entry_point: String,
}Expand description
Module metadata describing module identity and capabilities
Fields§
§name: StringModule name (unique identifier)
version: StringModule version (semantic versioning)
description: StringHuman-readable description
Module author
capabilities: Vec<String>Capabilities this module declares it can use
rpc_overrides: Vec<String>Core JSON-RPC methods this module intends to override at runtime.
Validated against OVERRIDABLE_CORE_RPC_METHODS at load time.
dependencies: HashMap<String, String>Required dependencies (module names with versions) Hard dependencies - module cannot load without them
optional_dependencies: HashMap<String, String>Optional dependencies (module names with versions) Soft dependencies - module can work without them
entry_point: StringModule entry point (binary name or path)
Trait Implementations§
Source§impl Clone for ModuleMetadata
impl Clone for ModuleMetadata
Source§fn clone(&self) -> ModuleMetadata
fn clone(&self) -> ModuleMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModuleMetadata
impl Debug for ModuleMetadata
Source§impl<'de> Deserialize<'de> for ModuleMetadata
impl<'de> Deserialize<'de> for ModuleMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModuleMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModuleMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ModuleMetadata> for ModuleInfo
impl From<&ModuleMetadata> for ModuleInfo
Source§fn from(metadata: &RefModuleMetadata) -> Self
fn from(metadata: &RefModuleMetadata) -> Self
Converts to this type from the input type.
Source§impl From<ModuleInfo> for ModuleMetadata
impl From<ModuleInfo> for ModuleMetadata
Source§fn from(info: ModuleInfo) -> Self
fn from(info: ModuleInfo) -> Self
Converts to this type from the input type.
Source§impl From<ModuleMetadata> for ModuleInfo
impl From<ModuleMetadata> for ModuleInfo
Source§fn from(metadata: RefModuleMetadata) -> Self
fn from(metadata: RefModuleMetadata) -> Self
Converts to this type from the input type.
Source§impl Serialize for ModuleMetadata
impl Serialize for ModuleMetadata
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<ModuleManifest> for ModuleMetadata
impl TryFrom<ModuleManifest> for ModuleMetadata
Source§type Error = ModuleError
type Error = ModuleError
The type returned in the event of a conversion error.
Source§fn try_from(
manifest: ModuleManifest,
) -> Result<ModuleMetadata, <ModuleMetadata as TryFrom<ModuleManifest>>::Error>
fn try_from( manifest: ModuleManifest, ) -> Result<ModuleMetadata, <ModuleMetadata as TryFrom<ModuleManifest>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ModuleMetadata
impl RefUnwindSafe for ModuleMetadata
impl Send for ModuleMetadata
impl Sync for ModuleMetadata
impl Unpin for ModuleMetadata
impl UnsafeUnpin for ModuleMetadata
impl UnwindSafe for ModuleMetadata
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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