mirror of
https://github.com/pezkuwichain/pezframe-metadata.git
synced 2026-04-22 04:17:58 +00:00
Abbreviate field names (docs, args) for consistency
This commit is contained in:
@@ -192,7 +192,7 @@ pub struct StorageEntryMetadata<T: Form = MetaForm> {
|
||||
pub modifier: StorageEntryModifier,
|
||||
pub ty: StorageEntryType<T>,
|
||||
pub default: Vec<u8>,
|
||||
pub documentation: Vec<T::String>,
|
||||
pub docs: Vec<T::String>,
|
||||
}
|
||||
|
||||
impl IntoPortable for StorageEntryMetadata {
|
||||
@@ -204,7 +204,7 @@ impl IntoPortable for StorageEntryMetadata {
|
||||
modifier: self.modifier,
|
||||
ty: self.ty.into_portable(registry),
|
||||
default: self.default,
|
||||
documentation: registry.map_into_portable(self.documentation),
|
||||
docs: registry.map_into_portable(self.docs),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -328,8 +328,8 @@ impl IntoPortable for PalletCallMetadata {
|
||||
)]
|
||||
pub struct FunctionMetadata<T: Form = MetaForm> {
|
||||
pub name: T::String,
|
||||
pub arguments: Vec<FunctionArgumentMetadata<T>>,
|
||||
pub documentation: Vec<T::String>,
|
||||
pub args: Vec<FunctionArgumentMetadata<T>>,
|
||||
pub docs: Vec<T::String>,
|
||||
}
|
||||
|
||||
impl IntoPortable for FunctionMetadata {
|
||||
@@ -338,8 +338,8 @@ impl IntoPortable for FunctionMetadata {
|
||||
fn into_portable(self, registry: &mut Registry) -> Self::Output {
|
||||
FunctionMetadata {
|
||||
name: self.name.into_portable(registry),
|
||||
arguments: registry.map_into_portable(self.arguments),
|
||||
documentation: registry.map_into_portable(self.documentation),
|
||||
args: registry.map_into_portable(self.args),
|
||||
docs: registry.map_into_portable(self.docs),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -391,7 +391,7 @@ pub struct PalletConstantMetadata<T: Form = MetaForm> {
|
||||
pub name: T::String,
|
||||
pub ty: T::Type,
|
||||
pub value: Vec<u8>,
|
||||
pub documentation: Vec<T::String>,
|
||||
pub docs: Vec<T::String>,
|
||||
}
|
||||
|
||||
impl IntoPortable for PalletConstantMetadata {
|
||||
@@ -402,7 +402,7 @@ impl IntoPortable for PalletConstantMetadata {
|
||||
name: self.name.into_portable(registry),
|
||||
ty: registry.register_type(&self.ty),
|
||||
value: self.value,
|
||||
documentation: registry.map_into_portable(self.documentation),
|
||||
docs: registry.map_into_portable(self.docs),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user