Struct pliantdb_core::schema::view::map::MappedDocument[][src]

pub struct MappedDocument<K: Key = (), V: Serialize = ()> {
    pub document: Document<'static>,
    pub key: K,
    pub value: V,
}
Expand description

A document’s entry in a View’s mappings.

Fields

document: Document<'static>

The id of the document that emitted this entry.

key: K

The key used to index the View.

value: V

An associated value stored in the view.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.