pub trait SerializedView: View {
    type Format: OwnedDeserializer<Self::Value>;

    fn format() -> Self::Format;

    fn deserialize(data: &[u8]) -> Result<Self::Value, Error> { ... }
    fn serialize(item: &Self::Value) -> Result<Vec<u8>, Error> { ... }
    fn entries<Database: Connection>(
        database: &Database
    ) -> View<'_, Database, Self, Self::Key> { ... } fn entries_async<Database: AsyncConnection>(
        database: &Database
    ) -> AsyncView<'_, Database, Self, Self::Key> { ... } }
Expand description

A View with additional tyes and logic to handle serializing view values.

Required Associated Types§

The serialization format for this view.

Required Methods§

Returns the configured instance of Self::Format.

Provided Methods§

Deserialize data as Self::Value using this views’s format.

Serialize item using this views’s format.

Returns a builder for a view query or view reduce.

Returns a builder for a view query or view reduce.

Implementors§