Trait gchdb::ChatRecoder[][src]

pub trait ChatRecoder<'a> {
    fn insert_or_update_record<R>(
        &mut self,
        record: R,
        merger: Option<Box<dyn Fn(Vec<u8>, Vec<u8>) -> Option<Vec<u8>>>>
    ) -> Result<bool, ChatRecordError>
    where
        R: Into<RecordType<'a>>
;
fn remove_record<R: Into<RecordType<'a>>>(
        &mut self,
        record: R
    ) -> Result<bool, ChatRecordError>;
fn get_record(&self, query: Query) -> Result<Vec<Record>, ChatRecordError>; }

Required methods

fn insert_or_update_record<R>(
    &mut self,
    record: R,
    merger: Option<Box<dyn Fn(Vec<u8>, Vec<u8>) -> Option<Vec<u8>>>>
) -> Result<bool, ChatRecordError> where
    R: Into<RecordType<'a>>, 
[src]

fn remove_record<R: Into<RecordType<'a>>>(
    &mut self,
    record: R
) -> Result<bool, ChatRecordError>
[src]

fn get_record(&self, query: Query) -> Result<Vec<Record>, ChatRecordError>[src]

Loading content...

Implementors

impl<'a> ChatRecoder<'a> for SqliteChatRecorder[src]

Loading content...