Introduce storage types, to builds abstraction on storage (to be used in pallet attribute macro) (#7278)

* introduce storage types

* fix line width

* improve doc

* typo

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* remove redundant function

* some more doc improvment

* disallow: some value on empty with option query

tests are update to still test default value is used when it is supposed
to be used.

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Guillaume Thiolliere
2020-11-03 11:08:36 +01:00
committed by GitHub
parent 7fcf0ff610
commit ff6b603d69
7 changed files with 1501 additions and 0 deletions
@@ -29,6 +29,7 @@ pub mod child;
#[doc(hidden)]
pub mod generator;
pub mod migration;
pub mod types;
#[cfg(all(feature = "std", any(test, debug_assertions)))]
mod debug_helper {