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>;
}
Expand description

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

Required Associated Types§

Required Methods§

Source

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

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§