dittolive_ditto::store::query_builder

Trait MutableValue

Source
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 since 4.14.4: Will be removed in SDK 5.0. Use DQL queries instead
Expand description

This trait describes a Ditto type for which modifications do not follow the regular assignment policy.

Required Associated Types§

Source

type BaseType: DeserializeOwned

👎Deprecated since 4.14.4: Will be removed in SDK 5.0. Use DQL queries instead

Required Methods§

Source

fn mutable_version( base: Self::BaseType, document: &'doc mut Document, path: Box, ) -> Result<Self>

👎Deprecated since 4.14.4: Will be removed in SDK 5.0. Use DQL queries instead

Dyn 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.

Implementors§