Enum cw_storage_plus::Strategy
source · pub enum Strategy {
EveryBlock,
Never,
Selected,
}
Variants§
EveryBlock
Never
Selected
Only writes for linked blocks - does a few more reads to save some writes. Probably uses more gas, but less total disk usage.
Note that you need a trusted source (eg. own contract) to set/remove checkpoints. Useful when the checkpoint setting happens in the same contract as the snapshotting.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Strategy
impl<'de> Deserialize<'de> for Strategy
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more