pub struct EditableMapEffectDB {
pub effects: BTreeMap<SArc<EffectPath>, BTreeMap<SArc<String>, Value>>,
pub empty: BTreeMap<SArc<String>, Value>,
}Expand description
§Editable Effects
A to/from container mirroring [MapEffectsDB], except the inner fields are
public. This allows us to edit [MapEffectsDB] in certain contexts where we
can fully replace it, without the concern of mutability for contract authors.
Fields§
§effects: BTreeMap<SArc<EffectPath>, BTreeMap<SArc<String>, Value>>All Effects currently in the set of effects
empty: BTreeMap<SArc<String>, Value>Catch-all for extra data for future extension
Trait Implementations§
Source§impl From<EditableMapEffectDB> for MapEffectDB
impl From<EditableMapEffectDB> for MapEffectDB
Source§fn from(_: EditableMapEffectDB) -> Self
fn from(_: EditableMapEffectDB) -> Self
Converts to this type from the input type.
Source§impl From<MapEffectDB> for EditableMapEffectDB
impl From<MapEffectDB> for EditableMapEffectDB
Source§fn from(_: MapEffectDB) -> Self
fn from(_: MapEffectDB) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EditableMapEffectDB
impl RefUnwindSafe for EditableMapEffectDB
impl Send for EditableMapEffectDB
impl Sync for EditableMapEffectDB
impl Unpin for EditableMapEffectDB
impl UnwindSafe for EditableMapEffectDB
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