pub enum StorageType {
Value(Ident),
Mapping {
key: Ident,
value: Ident,
},
DoubleKeyMapping {
key1: Ident,
key2: Ident,
value: Ident,
},
Invalid,
}
Expand description
Zink storage type parser
Variants§
Value(Ident)
Single value storage
Mapping
Mapping storage
DoubleKeyMapping
Double key mapping storage
Invalid
Invalid storage type
Trait Implementations§
Source§impl Debug for StorageType
impl Debug for StorageType
Source§impl Default for StorageType
impl Default for StorageType
Source§fn default() -> StorageType
fn default() -> StorageType
Returns the “default value” for a type. Read more
Source§impl From<TokenStream> for StorageType
impl From<TokenStream> for StorageType
Source§fn from(input: TokenStream) -> Self
fn from(input: TokenStream) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StorageType
impl RefUnwindSafe for StorageType
impl !Send for StorageType
impl !Sync for StorageType
impl Unpin for StorageType
impl UnwindSafe for StorageType
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