pub struct StorageContext {
pub script_hash: [u8; 20],
pub read_only: bool,
}Expand description
Storage context for a contract
Fields§
§script_hash: [u8; 20]Contract script hash (20 bytes)
read_only: boolRead-only flag
Trait Implementations§
Source§impl Clone for StorageContext
impl Clone for StorageContext
Source§fn clone(&self) -> StorageContext
fn clone(&self) -> StorageContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageContext
impl Debug for StorageContext
Source§impl Default for StorageContext
impl Default for StorageContext
Source§fn default() -> StorageContext
fn default() -> StorageContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StorageContext
impl RefUnwindSafe for StorageContext
impl Send for StorageContext
impl Sync for StorageContext
impl Unpin for StorageContext
impl UnwindSafe for StorageContext
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