pub fn create_record(&self, payload: Vec<u8>) -> Id {
        self.db.take(|db| {
            let (id, req) = db
                .writer(self.id)
                .write(&payload, RecordHint::new(b"").expect(line_error!()))
                .expect(line_error!());

            req.into_iter().for_each(|req| {
                send_until_success(CRequest::Write(req));
            });

            id
        })
    }
// create a record in the vault.
create a record in the vault.
create a record in the vault .
pub fn create_record(&self, payload: Vec<u8>) -> Id {
        self.db.take(|db| {
            let (id, req) = db
                .writer(self.id)
                .write(&payload, RecordHint::new(b"").expect(line_error!()))
                .expect(line_error!());
            req.into_iter().for_each(|req| {
                send_until_success(CRequest::Write(req));
            });
            id
        })
    }
pub fn create_record ( & self , payload : Vec < u8 > ) -> Id { self . db . take ( | db | { let ( id , req ) = db . writer ( self . id ) . write ( & payload , RecordHint :: new ( b" " ) . expect ( line_error ! ( ) ) ) . expect ( line_error ! ( ) ) ; req . into_iter ( ) . for_each ( | req | { send_until_success ( CRequest :: Write ( req ) ) ; } ) ; id } ) }
create a record in the vault.
create a record in the vault .
&self
payload
Vec<u8>