pub enum LedgerKeyParams {
ContractData(String),
ContractCode(String),
ContractDataEntry {
contract: String,
key: ScVal,
durability: ContractDataDurability,
},
}Expand description
Parameters for constructing a LedgerKey.
Variants§
ContractData(String)
A contract’s instance data key. Takes the contract ID as a hex string.
ContractCode(String)
A contract’s WASM code key. Takes the WASM hash as a hex string.
ContractDataEntry
An arbitrary contract-data entry: the contract (C... StrKey or 32-byte
hex), the entry’s key ScVal, and its durability. This is the general
form behind typed storage-key construction (e.g. a persistent map entry
keyed by ScVec[symbol, address]).
Auto Trait Implementations§
impl Freeze for LedgerKeyParams
impl RefUnwindSafe for LedgerKeyParams
impl Send for LedgerKeyParams
impl Sync for LedgerKeyParams
impl Unpin for LedgerKeyParams
impl UnsafeUnpin for LedgerKeyParams
impl UnwindSafe for LedgerKeyParams
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