pub enum KeyPrefix {
DelegatorBidAddrsByValidator(AccountHash),
MessageEntriesByEntity(EntityAddr),
MessagesByEntityAndTopic(EntityAddr, TopicNameHash),
NamedKeysByEntity(EntityAddr),
GasBalanceHoldsByPurse(URefAddr),
ProcessingBalanceHoldsByPurse(URefAddr),
EntryPointsV1ByEntity(EntityAddr),
EntryPointsV2ByEntity(EntityAddr),
}Expand description
Key prefixes used for querying the global state.
Variants§
DelegatorBidAddrsByValidator(AccountHash)
Retrieves all delegator bid addresses for a given validator.
MessageEntriesByEntity(EntityAddr)
Retrieves all entries for a given hash addr.
MessagesByEntityAndTopic(EntityAddr, TopicNameHash)
Retrieves all messages for a given hash addr and topic.
NamedKeysByEntity(EntityAddr)
Retrieves all named keys for a given entity.
GasBalanceHoldsByPurse(URefAddr)
Retrieves all gas balance holds for a given purse.
ProcessingBalanceHoldsByPurse(URefAddr)
Retrieves all processing balance holds for a given purse.
EntryPointsV1ByEntity(EntityAddr)
Retrieves all V1 entry points for a given entity.
EntryPointsV2ByEntity(EntityAddr)
Retrieves all V2 entry points for a given entity.
Trait Implementations§
Source§impl Ord for KeyPrefix
impl Ord for KeyPrefix
Source§impl PartialOrd for KeyPrefix
impl PartialOrd for KeyPrefix
Source§impl ToBytes for KeyPrefix
impl ToBytes for KeyPrefix
Source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8> which would be returned from a successful call to
to_bytes() or into_bytes(). The data is not actually serialized, so this call is
relatively cheap.impl Eq for KeyPrefix
impl StructuralPartialEq for KeyPrefix
Auto Trait Implementations§
impl Freeze for KeyPrefix
impl RefUnwindSafe for KeyPrefix
impl Send for KeyPrefix
impl Sync for KeyPrefix
impl Unpin for KeyPrefix
impl UnwindSafe for KeyPrefix
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more