#[repr(transparent)]pub struct StorageKeyType(pub i32);Expand description
Each ContractAddress owns a namespace of storage keys.
Most of the keyspace is made up of ContractData keys, which are indexed
by 32-byte (arbitrary) identifiers (the StorageKeyContractData type).
The other variants here have special purposes, and cannot be freely accessed
by contracts.
Contracts are free to set their own conventions for indexing data within the StorageKeyContractData subspace.
Tuple Fields§
§0: i32Implementations§
Source§impl StorageKeyType
impl StorageKeyType
Sourcepub const ContractData: StorageKeyType
pub const ContractData: StorageKeyType
Contract-controlled data.
Stores arbitrary data managed by the contract at this address.
Sourcepub const FreeNativeTokenBalance: StorageKeyType
pub const FreeNativeTokenBalance: StorageKeyType
Native token balance.
Stores the free balance of the native token for this address.
Sourcepub const AuthData: StorageKeyType
pub const AuthData: StorageKeyType
Address authorization data.
Stores AddressAuthData - the authorization configuration: public
keys, their weights, and the required weight.
Sourcepub const Metadata: StorageKeyType
pub const Metadata: StorageKeyType
Address metadata.
Stores DeployedContractHash - metadata about the contract deployed
at this address (hash, size, type).
Sourcepub const ReplayCache: StorageKeyType
pub const ReplayCache: StorageKeyType
Replay cache for nonce tracking.
Stores a set of active Uniquifier objects
to prevent transaction replay attacks.
Trait Implementations§
Source§impl Clone for StorageKeyType
impl Clone for StorageKeyType
Source§fn clone(&self) -> StorageKeyType
fn clone(&self) -> StorageKeyType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ConstMaxSize for StorageKeyType
impl ConstMaxSize for StorageKeyType
Source§impl ConstMaxSize for StorageKeyType
impl ConstMaxSize for StorageKeyType
impl Copy for StorageKeyType
Source§impl Debug for StorageKeyType
impl Debug for StorageKeyType
Source§impl Display for StorageKeyType
Available on crate feature std only.
impl Display for StorageKeyType
std only.impl EncodesAs<StorageKeyType> for StorageKeyType
impl Eq for StorageKeyType
Source§impl From<i32> for StorageKeyType
impl From<i32> for StorageKeyType
Source§fn from(v: i32) -> StorageKeyType
fn from(v: i32) -> StorageKeyType
Source§impl Hash for StorageKeyType
impl Hash for StorageKeyType
Source§impl JsonSchema for StorageKeyType
impl JsonSchema for StorageKeyType
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Ord for StorageKeyType
impl Ord for StorageKeyType
Source§fn cmp(&self, other: &StorageKeyType) -> Ordering
fn cmp(&self, other: &StorageKeyType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for StorageKeyType
impl PartialEq for StorageKeyType
Source§impl PartialOrd for StorageKeyType
impl PartialOrd for StorageKeyType
Source§impl<'_r> ReadXDR<'_r> for StorageKeyType
impl<'_r> ReadXDR<'_r> for StorageKeyType
Source§fn read_xdr<R>(r: &mut R) -> Result<StorageKeyType, ReadError>where
R: Reader<'_r>,
fn read_xdr<R>(r: &mut R) -> Result<StorageKeyType, ReadError>where
R: Reader<'_r>,
Source§fn read_xdr_in_place<R, '__xdrs_s>(
r: &mut R,
__xdrs_slot: Slot<'__xdrs_s, StorageKeyType>,
) -> Result<Init<'__xdrs_s, StorageKeyType>, ReadError>where
R: Reader<'_r>,
fn read_xdr_in_place<R, '__xdrs_s>(
r: &mut R,
__xdrs_slot: Slot<'__xdrs_s, StorageKeyType>,
) -> Result<Init<'__xdrs_s, StorageKeyType>, ReadError>where
R: Reader<'_r>,
slot, without first building it
on the stack. Read more