#[repr(u64)]pub enum Keyspace<'a> {
State,
Context(&'a [u8]),
NamedKey(&'a str),
PaymentInfo(&'a str),
}Variants§
State
Stores contract’s context.
There’s no additional payload for this variant as the host implies the contract’s address.
Context(&'a [u8])
Stores contract’s context date. Bytes can be any value as long as it uniquely identifies a value.
NamedKey(&'a str)
Stores contract’s named keys.
PaymentInfo(&'a str)
Entry point payment info.
Implementations§
Trait Implementations§
impl<'a> Copy for Keyspace<'a>
impl<'a> Eq for Keyspace<'a>
impl<'a> StructuralPartialEq for Keyspace<'a>
Auto Trait Implementations§
impl<'a> Freeze for Keyspace<'a>
impl<'a> RefUnwindSafe for Keyspace<'a>
impl<'a> Send for Keyspace<'a>
impl<'a> Sync for Keyspace<'a>
impl<'a> Unpin for Keyspace<'a>
impl<'a> UnwindSafe for Keyspace<'a>
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