pub trait MutableValue<'doc>: Sized {
type BaseType: DeserializeOwned;
// Required method
fn mutable_version(
base: Self::BaseType,
document: &'doc mut Document,
path: Box,
) -> Result<Self>;
}👎Deprecated: Use
ditto.store().execute_v2(...) or ditto.store().register_observer_v2(...) insteadExpand description
This trait describes a Ditto type for which modifications do not follow the regular assignment policy.
Required Associated Types§
type BaseType: DeserializeOwned
👎Deprecated: Use
ditto.store().execute_v2(...) or ditto.store().register_observer_v2(...) insteadRequired Methods§
fn mutable_version( base: Self::BaseType, document: &'doc mut Document, path: Box, ) -> Result<Self>
👎Deprecated: Use
ditto.store().execute_v2(...) or ditto.store().register_observer_v2(...) insteadDyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.