Trait pliantdb_core::schema::view::Serialized[][src]

pub trait Serialized: Send + Sync + Debug {
    fn collection(&self) -> Id;
fn version(&self) -> usize;
fn name(&self) -> Cow<'static, str>;
fn map(&self, document: &Document<'_>) -> Result<Option<Serialized>, Error>; }

Wraps a View with serialization to erase the associated types

Required methods

fn collection(&self) -> Id[src]

Wraps [View::collection]

fn version(&self) -> usize[src]

fn name(&self) -> Cow<'static, str>[src]

Wraps View::name

fn map(&self, document: &Document<'_>) -> Result<Option<Serialized>, Error>[src]

Wraps View::map

Loading content...

Implementors

impl<T> Serialized for T where
    T: View,
    <T as View>::MapKey: 'static, 
[src]

Loading content...