Struct fuels_programs::contract::StorageConfiguration
source · pub struct StorageConfiguration { /* private fields */ }
Expand description
Configuration for contract storage
Implementations§
source§impl StorageConfiguration
impl StorageConfiguration
pub fn from(storage_slots: impl IntoIterator<Item = StorageSlot>) -> Self
pub fn load_from(storage_path: &str) -> Result<Self>
pub fn extend(&mut self, storage_slots: impl IntoIterator<Item = StorageSlot>)
pub fn merge(&mut self, storage_config: StorageConfiguration)
Trait Implementations§
source§impl Clone for StorageConfiguration
impl Clone for StorageConfiguration
source§fn clone(&self) -> StorageConfiguration
fn clone(&self) -> StorageConfiguration
Returns a copy 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 StorageConfiguration
impl Debug for StorageConfiguration
source§impl Default for StorageConfiguration
impl Default for StorageConfiguration
source§fn default() -> StorageConfiguration
fn default() -> StorageConfiguration
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for StorageConfiguration
impl Send for StorageConfiguration
impl Sync for StorageConfiguration
impl Unpin for StorageConfiguration
impl UnwindSafe for StorageConfiguration
Blanket Implementations§
source§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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