diff --git a/src/lib.rs b/src/lib.rs index 90613705..0e8a6415 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -348,6 +348,7 @@ pub use self::{ portable::{ PortableRegistry, PortableRegistryBuilder, + PortableType, }, registry::{ IntoPortable, diff --git a/src/portable.rs b/src/portable.rs index 133f0594..88bd9e9f 100644 --- a/src/portable.rs +++ b/src/portable.rs @@ -238,8 +238,10 @@ impl PortableRegistry { #[cfg_attr(any(feature = "std", feature = "decode"), derive(scale::Decode))] #[derive(Clone, Debug, PartialEq, Eq, Encode)] pub struct PortableType { + /// The ID of the portable type. #[codec(compact)] pub id: u32, + /// The portable form of the type. #[cfg_attr(feature = "serde", serde(rename = "type"))] pub ty: Type, }