pub trait InsertJson {
    // Required methods
    fn insert_json<A: Serialize + Send + Sync>(
        &mut self,
        thing: &A
    ) -> impl Future<Output = Result<ObjectID, YsError>> + Send;
    fn read_json<A: for<'de> Deserialize<'de>>(
        &mut self,
        id: ObjectID
    ) -> impl Future<Output = Result<A, YsError>> + Send;
}

Required Methods§

source

fn insert_json<A: Serialize + Send + Sync>( &mut self, thing: &A ) -> impl Future<Output = Result<ObjectID, YsError>> + Send

source

fn read_json<A: for<'de> Deserialize<'de>>( &mut self, id: ObjectID ) -> impl Future<Output = Result<A, YsError>> + Send

Object Safety§

This trait is not object safe.

Implementors§