Trait cw_storage_plus::KeyDeserialize
source · pub trait KeyDeserialize {
type Output: Sized;
// Required method
fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>;
// Provided method
fn from_slice(value: &[u8]) -> StdResult<Self::Output> { ... }
}
Required Associated Types§
Required Methods§
Provided Methods§
fn from_slice(value: &[u8]) -> StdResult<Self::Output>
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl KeyDeserialize for &str
impl KeyDeserialize for &str
source§impl KeyDeserialize for &String
impl KeyDeserialize for &String
source§impl KeyDeserialize for &Vec<u8>
impl KeyDeserialize for &Vec<u8>
source§impl KeyDeserialize for &Addr
impl KeyDeserialize for &Addr
source§impl KeyDeserialize for &[u8]
impl KeyDeserialize for &[u8]
source§impl KeyDeserialize for i8
impl KeyDeserialize for i8
source§impl KeyDeserialize for i16
impl KeyDeserialize for i16
source§impl KeyDeserialize for i32
impl KeyDeserialize for i32
source§impl KeyDeserialize for i64
impl KeyDeserialize for i64
source§impl KeyDeserialize for i128
impl KeyDeserialize for i128
source§impl KeyDeserialize for u8
impl KeyDeserialize for u8
source§impl KeyDeserialize for u16
impl KeyDeserialize for u16
source§impl KeyDeserialize for u32
impl KeyDeserialize for u32
source§impl KeyDeserialize for u64
impl KeyDeserialize for u64
source§impl KeyDeserialize for u128
impl KeyDeserialize for u128
source§impl KeyDeserialize for ()
impl KeyDeserialize for ()
source§impl KeyDeserialize for String
impl KeyDeserialize for String
source§impl KeyDeserialize for Vec<u8>
impl KeyDeserialize for Vec<u8>
source§impl KeyDeserialize for Addr
impl KeyDeserialize for Addr
source§impl<T: KeyDeserialize, U: KeyDeserialize> KeyDeserialize for (T, U)
impl<T: KeyDeserialize, U: KeyDeserialize> KeyDeserialize for (T, U)
Warning: This implementation is buggy in many cases except the most basic ones.
In these cases, it will panic when you try to range
through your keys.
See #33 for more information. This will be fixed in version 2.0.